Fix SC2295

This commit is contained in:
BarbUk 2023-04-27 09:47:45 +02:00
parent d24d08b1df
commit 271b7227b4
No known key found for this signature in database
GPG Key ID: B6D01F84A7519939

2
snippy
View File

@ -132,7 +132,7 @@ is_vim() {
# Find the index of a string in a string
strindex() {
x="${1%%$2*}"
x="${1%%"$2"*}"
[[ "$x" = "$1" ]] && echo -1 || echo "${#x}"
}