From ad07a8d0ff185572c05e596f5e3a11880c583ba2 Mon Sep 17 00:00:00 2001 From: Nate Abele Date: Tue, 15 Apr 2014 23:06:00 -0400 Subject: [PATCH] style(UrlMatcher): semantic and formatting fixes --- src/urlMatcherFactory.js | 2 +- src/urlRouter.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/urlMatcherFactory.js b/src/urlMatcherFactory.js index d02fe506b..0521fd531 100644 --- a/src/urlMatcherFactory.js +++ b/src/urlMatcherFactory.js @@ -140,7 +140,7 @@ function UrlMatcher(pattern, config) { compiled += quoteRegExp(segment) + '$'; segments.push(segment); - this.regexp = RegExp(compiled, config.caseInsensitive ? 'i' : undefined); + this.regexp = new RegExp(compiled, config.caseInsensitive ? 'i' : undefined); this.prefix = segments[0]; } diff --git a/src/urlRouter.js b/src/urlRouter.js index bfa22fe0e..3b7fb8d13 100644 --- a/src/urlRouter.js +++ b/src/urlRouter.js @@ -247,7 +247,7 @@ function $UrlRouterProvider( $locationProvider, $urlMatcherFactory) { this.deferIntercept = function (defer) { if (defer === undefined) defer = true; interceptDeferred = defer; - } + }; /** * @ngdoc object