Skip to content

Commit

Permalink
Fixed undefined reference when using regex
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinNuc committed Mar 29, 2016
1 parent d4b3d78 commit 941e02f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/factory.js
Original file line number Diff line number Diff line change
Expand Up @@ -557,7 +557,7 @@ angular.module("datetime").factory("datetime", function($locale){
break;

case "regex":
m = p.regex.exec(text.substr(pos));
m = node.token.regex.exec(text.substr(pos));
if (!m || m.index != 0) {
throw {
code: "REGEX_MISMATCH",
Expand Down

0 comments on commit 941e02f

Please sign in to comment.