Skip to content

Commit

Permalink
Fixing the character set of the default validator.
Browse files Browse the repository at this point in the history
  • Loading branch information
tdecaluwe committed Dec 14, 2015
1 parent 487f347 commit 8e4a97f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ Parser.states = {

Parser.regexes = {
segment: /[A-Z]*/g,
plain: /[A-Z0-9 ]*/g
plain: /[A-Z0-9.,\-()/= ]*/g
};

Parser.errors = {
Expand Down Expand Up @@ -181,7 +181,7 @@ Parser.defaultValidator = {
onopensegment: function (segment) {},
onelement: function () {},
oncomponent: function () {
this._value ='';
this._value = '';
},
onclosesegment: function (segment) {},
ondata: function (chunk, start, index) {
Expand Down

0 comments on commit 8e4a97f

Please sign in to comment.