1
0
mirror of https://github.com/mitb-archive/filebot synced 2024-11-13 12:55:00 -05:00

Make --def name=value sanity check less strict

This commit is contained in:
Reinhard Pointner 2019-02-26 14:34:11 +07:00
parent 9d08f5f192
commit 02545ba78c

View File

@ -81,21 +81,7 @@ public class BindingsHandler extends MapOptionHandler {
return false;
}
for (int i = 0; i < n.length();) {
int c = n.codePointAt(i);
if (i == 0) {
if (!Character.isUnicodeIdentifierStart(c))
return false;
} else {
if (!Character.isUnicodeIdentifierPart(c))
return false;
}
i += Character.charCount(c);
}
return true;
return Character.isUnicodeIdentifierStart(n.codePointAt(0));
}
@Override