diff --git a/misc/userscripts/password_fill b/misc/userscripts/password_fill index 2e4f01b66..7d4be0467 100755 --- a/misc/userscripts/password_fill +++ b/misc/userscripts/password_fill @@ -64,6 +64,7 @@ die() { javascript_escape() { # print the first argument in an escaped way, such that it can safely # be used within javascripts double quotes + # shellcheck disable=SC2001 sed "s,[\\\\'\"],\\\\&,g" <<< "$1" } @@ -111,6 +112,7 @@ simplify_url() { # are found: no_entries_found() { while [ 0 -eq "${#files[@]}" ] && [ -n "$simple_url" ]; do + # shellcheck disable=SC2001 shorter_simple_url=$(sed 's,^[^.]*\.,,' <<< "$simple_url") if [ "$shorter_simple_url" = "$simple_url" ] ; then # if no dot, then even remove the top level domain