Browse files

Re #87 Simplified bad state name regexp

  • Loading branch information...
1 parent 756c0c5 commit 3d2d9f5cbcf53ef362b719b4b7958d9a477b6569 @bemson committed Feb 23, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/salt.js
View
2 src/salt.js
@@ -1438,7 +1438,7 @@
attrKey: /^_/,
// pattern for identifying invalid state names
- badKey: /^\d|^\W|[^a-zA-Z\d\-_\+=\(\)\*\&\^\%\$\#\!\~\`\{\}\"\'\:\;\?\, ]+|^toString$/,
+ badKey: /^[^a-zA-Z]|\||\/|\.|^toString$/,
// tree preprocessor
prepTree: function (orig) {

0 comments on commit 3d2d9f5

Please sign in to comment.