Allow white space in the property name.

This commit is contained in:
LexManos 2012-08-16 09:11:04 -07:00
parent e4a9cf4993
commit e31b6c0be4

View file

@ -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 + "\"");
}