Allow white space in the property name.

This commit is contained in:
LexManos committed 2012-08-16 09:11:04 -07:00
1 parent e4a9cf4993
commit e31b6c0be4
1 file changed
+1 -1
@@ -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 + "\"");
}