Skip to content

Commit 941e02f

Browse files
committed
Fixed undefined reference when using regex
1 parent d4b3d78 commit 941e02f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/factory.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -557,7 +557,7 @@ angular.module("datetime").factory("datetime", function($locale){
557557
break;
558558

559559
case "regex":
560-
m = p.regex.exec(text.substr(pos));
560+
m = node.token.regex.exec(text.substr(pos));
561561
if (!m || m.index != 0) {
562562
throw {
563563
code: "REGEX_MISMATCH",

0 commit comments

Comments
 (0)