From 941e02f459fff9de48b6b3b8a8de80bf885d0767 Mon Sep 17 00:00:00 2001 From: Martin Nuc Date: Tue, 29 Mar 2016 20:14:33 +0200 Subject: [PATCH] Fixed undefined reference when using regex --- src/factory.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/factory.js b/src/factory.js index f1b8b90..4442428 100644 --- a/src/factory.js +++ b/src/factory.js @@ -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",