mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-22 16:18:08 +02:00
Fix errors reported by the space-infix-ops
ESLint rule
http://eslint.org/docs/rules/space-infix-ops
This commit is contained in:
parent
68bf47d55d
commit
28e50cfa21
6 changed files with 8 additions and 8 deletions
|
@ -895,7 +895,7 @@ var Lexer = (function LexerClosure() {
|
|||
var x2 = toHexDigit(ch);
|
||||
if (x2 === -1) {
|
||||
warn('Lexer_getName: Illegal digit (' +
|
||||
String.fromCharCode(ch) +') in hexadecimal number.');
|
||||
String.fromCharCode(ch) + ') in hexadecimal number.');
|
||||
strBuf.push('#', String.fromCharCode(previousCh));
|
||||
if (specialChars[ch]) {
|
||||
break;
|
||||
|
|
|
@ -1925,7 +1925,7 @@ if (typeof PDFJSDev === 'undefined' || !PDFJSDev.test('MOZCENTRAL')) {
|
|||
break;
|
||||
|
||||
case 'relative or authority':
|
||||
if ('/' === c && '/' === input[cursor+1]) {
|
||||
if ('/' === c && '/' === input[cursor + 1]) {
|
||||
state = 'authority ignore slashes';
|
||||
} else {
|
||||
err('Expected /, got: ' + c);
|
||||
|
@ -1970,8 +1970,8 @@ if (typeof PDFJSDev === 'undefined' || !PDFJSDev.test('MOZCENTRAL')) {
|
|||
this._password = base._password;
|
||||
state = 'fragment';
|
||||
} else {
|
||||
var nextC = input[cursor+1];
|
||||
var nextNextC = input[cursor+2];
|
||||
var nextC = input[cursor + 1];
|
||||
var nextNextC = input[cursor + 2];
|
||||
if ('file' !== this._scheme || !ALPHA.test(c) ||
|
||||
(nextC !== ':' && nextC !== '|') ||
|
||||
(EOF !== nextNextC && '/' !== nextNextC && '\\' !== nextNextC &&
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue