Allow white space in the property name.
This commit is contained in:
parent
e4a9cf4993
commit
e31b6c0be4
1 changed files with 1 additions and 1 deletions
|
@ -97,7 +97,7 @@ public class Property
|
|||
{
|
||||
for (char c : name.toCharArray())
|
||||
{
|
||||
if (!Character.isLetterOrDigit(c) && Configuration.ALLOWED_CHARS.indexOf(c) == -1)
|
||||
if (!Character.isLetterOrDigit(c) && Configuration.ALLOWED_CHARS.indexOf(c) == -1 && !Character.isWhitespace(c))
|
||||
{
|
||||
throw new IllegalArgumentException("Invalid property name: \"" + name + "\"");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue