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
1 changed files with 1 additions and 15 deletions

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