1
0
mirror of https://github.com/mitb-archive/filebot synced 2024-11-14 05:15:03 -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; return false;
} }
for (int i = 0; i < n.length();) { return Character.isUnicodeIdentifierStart(n.codePointAt(0));
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;
} }
@Override @Override