diff --git a/package.json b/package.json index 807cc83fe7..52758b4935 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 6cdac7ad79..6ccab203f1 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 1616c3dfc0..4e3689f0c3 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;