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:
parent
9d08f5f192
commit
02545ba78c
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user