chore($compile): make webstorm's regexp parser happy
Minor change puts \- at end of character pattern In CLASS_DIRECTIVE_REGEXP and COMMENT_DIRECTIVE_REGEXP, putting the \- character at the end of the character patter speeds up many IDE parsers and alleviates some errors in certain IDE's. (WebStorm 8) Functionally absolutely equivalent. No test change needed. Closes #7093
This commit is contained in:
+2
-2
@@ -512,8 +512,8 @@ $CompileProvider.$inject = ['$provide', '$$sanitizeUriProvider'];
|
|||||||
function $CompileProvider($provide, $$sanitizeUriProvider) {
|
function $CompileProvider($provide, $$sanitizeUriProvider) {
|
||||||
var hasDirectives = {},
|
var hasDirectives = {},
|
||||||
Suffix = 'Directive',
|
Suffix = 'Directive',
|
||||||
COMMENT_DIRECTIVE_REGEXP = /^\s*directive\:\s*([\d\w\-_]+)\s+(.*)$/,
|
COMMENT_DIRECTIVE_REGEXP = /^\s*directive\:\s*([\d\w_\-]+)\s+(.*)$/,
|
||||||
CLASS_DIRECTIVE_REGEXP = /(([\d\w\-_]+)(?:\:([^;]+))?;?)/;
|
CLASS_DIRECTIVE_REGEXP = /(([\d\w_\-]+)(?:\:([^;]+))?;?)/;
|
||||||
|
|
||||||
// Ref: http://developers.whatwg.org/webappapis.html#event-handler-idl-attributes
|
// Ref: http://developers.whatwg.org/webappapis.html#event-handler-idl-attributes
|
||||||
// The assumption is that future DOM event attribute names will begin with
|
// The assumption is that future DOM event attribute names will begin with
|
||||||
|
|||||||
Reference in New Issue
Block a user