Fix nit whitespace issue that is breaking lint. (#4092)

* Not sure how this got introduced without lint catching either in the upgrade of a lib or a pr on these files, but innocuous enough that i don't think we need to investigate further?

* Update eslint to make all happy!
This commit is contained in:
Arthur Cinader
2017-08-10 16:31:32 -04:00
committed by Natan Rolnik
parent 2cec92007a
commit 008cb1dbfe
3 changed files with 8 additions and 8 deletions

View File

@@ -55,7 +55,7 @@
"bcrypt-nodejs": "0.0.3",
"cross-env": "5.0.2",
"deep-diff": "0.3.8",
"eslint": "^4.0.0",
"eslint": "^4.4.1",
"eslint-plugin-flowtype": "^2.25.0",
"gaze": "1.1.2",
"jasmine": "2.7.0",

View File

@@ -1452,11 +1452,11 @@ function literalizeRegexPart(s) {
// remove all instances of \Q and \E from the remaining text & escape single quotes
return (
s.replace(/([^\\])(\\E)/, '$1')
.replace(/([^\\])(\\Q)/, '$1')
.replace(/^\\E/, '')
.replace(/^\\Q/, '')
.replace(/([^'])'/, `$1''`)
.replace(/^'([^'])/, `''$1`)
.replace(/([^\\])(\\Q)/, '$1')
.replace(/^\\E/, '')
.replace(/^\\Q/, '')
.replace(/([^'])'/, `$1''`)
.replace(/^'([^'])/, `''$1`)
);
}

View File

@@ -255,8 +255,8 @@ Url.prototype.parse = function(url, parseQueryString, slashesDenoteHost) {
hostEnd = i;
break;
case 64: // '@'
// At this point, either we have an explicit point where the
// auth portion cannot go past, or the last @ char is the decider.
// At this point, either we have an explicit point where the
// auth portion cannot go past, or the last @ char is the decider.
atSign = i;
nonHost = -1;
break;