From 008cb1dbfe91f37dd51b0e43dd05361decac9fbf Mon Sep 17 00:00:00 2001 From: Arthur Cinader Date: Thu, 10 Aug 2017 16:31:32 -0400 Subject: [PATCH] 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! --- package.json | 2 +- .../Storage/Postgres/PostgresStorageAdapter.js | 10 +++++----- src/vendor/mongodbUrl.js | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/package.json b/package.json index 807cc83f..52758b49 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/Adapters/Storage/Postgres/PostgresStorageAdapter.js b/src/Adapters/Storage/Postgres/PostgresStorageAdapter.js index 6cdac7ad..6ccab203 100644 --- a/src/Adapters/Storage/Postgres/PostgresStorageAdapter.js +++ b/src/Adapters/Storage/Postgres/PostgresStorageAdapter.js @@ -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`) ); } diff --git a/src/vendor/mongodbUrl.js b/src/vendor/mongodbUrl.js index 1616c3df..4e3689f0 100644 --- a/src/vendor/mongodbUrl.js +++ b/src/vendor/mongodbUrl.js @@ -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;