arg-parser -- fix utf8

This commit is contained in:
Anthony Axenov 2025-01-20 16:11:46 +08:00
parent c4b2af8073
commit 6fee688968
Signed by: anthony
GPG Key ID: EA9EC32FF7CCD4EC

View File

@ -13,7 +13,7 @@
#exitcode 0 - string valid
#exitcode 1 - string is not valid
grep_match() {
printf "%s" "$1" | grep -qP "$2" >/dev/null
printf "%s" "$1" | grep -qE "$2" >/dev/null
}
#purpose Find short argument or its value