Skip to content

Commit

Permalink
Merge branch 'master' of github.com:mgechev/codelyzer
Browse files Browse the repository at this point in the history
* 'master' of github.com:mgechev/codelyzer:
  fix(i18n): do not warn with interpolation in i18n element (#485)
  fix(trackBy): fix rule when ngFor statements include let assignments (#483)
  fix(core): update the CSS parser (#482)
  • Loading branch information
mgechev committed Jan 16, 2018
2 parents 4c1c8d4 + 54b7506 commit bd8386b
Show file tree
Hide file tree
Showing 10 changed files with 884 additions and 497 deletions.
151 changes: 146 additions & 5 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
"chai-spies": "^0.7.1",
"minimalist": "1.0.0",
"mocha": "3.0.2",
"node-sass": "^3.13.0",
"node-sass": "^4.7.2",
"rimraf": "^2.5.2",
"rxjs": "^5.5.0",
"ts-node": "1.2.2",
Expand Down
8 changes: 5 additions & 3 deletions src/angular/styles/chars.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/* tslint:disable */

/**
* @license
* Copyright Google Inc. All Rights Reserved.
Expand Down Expand Up @@ -73,17 +75,17 @@ export const $AT = 64;
export const $BT = 96;

export function isWhitespace(code: number): boolean {
return (code >= $TAB && code <= $SPACE) || (code === $NBSP);
return (code >= $TAB && code <= $SPACE) || code == $NBSP;
}

export function isDigit(code: number): boolean {
return $0 <= code && code <= $9;
}

export function isAsciiLetter(code: number): boolean {
return code >= $a && code <= $z || code >= $A && code <= $Z;
return (code >= $a && code <= $z) || (code >= $A && code <= $Z);
}

export function isAsciiHexDigit(code: number): boolean {
return code >= $a && code <= $f || code >= $A && code <= $F || isDigit(code);
return (code >= $a && code <= $f) || (code >= $A && code <= $F) || isDigit(code);
}

0 comments on commit bd8386b

Please sign in to comment.