Skip to content

Commit

Permalink
style(UrlMatcher): semantic and formatting fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
nateabele committed Apr 16, 2014
1 parent c72d8ce commit ad07a8d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/urlMatcherFactory.js
Original file line number Diff line number Diff line change
Expand Up @@ -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];
}

Expand Down
2 changes: 1 addition & 1 deletion src/urlRouter.js
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ function $UrlRouterProvider( $locationProvider, $urlMatcherFactory) {
this.deferIntercept = function (defer) {
if (defer === undefined) defer = true;
interceptDeferred = defer;
}
};

/**
* @ngdoc object
Expand Down

0 comments on commit ad07a8d

Please sign in to comment.