mirror of
https://github.com/mitb-archive/filebot
synced 2024-11-14 13:25:10 -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;
|
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
|
||||||
|
Loading…
Reference in New Issue
Block a user