Skip to content

Commit

Permalink
Reconfigure after reading a UNA header.
Browse files Browse the repository at this point in the history
  • Loading branch information
tdecaluwe committed Mar 11, 2016
1 parent 26a9aae commit 47e25e2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ Parser.prototype.una = function (chunk) {
this._configuration.DM = chunk.charCodeAt(5);
this._configuration.RC = chunk.charCodeAt(6);
this._configuration.ST = chunk.charCodeAt(8);
this._tokenizer.configure(this._configuration);
return true;
} else {
return false;
Expand Down
2 changes: 2 additions & 0 deletions tokenizer.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ Tokenizer.prototype.configure = function (configuration) {
numeric: this._regexes.numeric,
decimal: this._regexes.decimal
});

this.alphanumeric();
}

return this;
Expand Down

0 comments on commit 47e25e2

Please sign in to comment.