Skip to content

Commit 6dd27df

Browse files
author
Arthur Cinader
authored
Merge branch 'master' into greenkeeper/parse-server-s3-adapter-1.2.0
2 parents 2094bd6 + c2c059f commit 6dd27df

File tree

4 files changed

+14
-12
lines changed

4 files changed

+14
-12
lines changed

.travis.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
language: node_js
22
dist: trusty
3-
node_js:
4-
- '6.10'
5-
- '7.10'
63
services:
74
- mongodb
85
- postgresql
@@ -27,11 +24,16 @@ stage: test
2724
env:
2825
global:
2926
- COVERAGE_OPTION='./node_modules/.bin/nyc'
27+
- NODE_VERSION=6.10
3028
matrix:
3129
- MONGODB_VERSION=3.2.13
3230
- MONGODB_VERSION=3.4.4
3331
- PARSE_SERVER_TEST_DB=postgres
3432
- PARSE_SERVER_TEST_CACHE=redis
33+
- NODE_VERSION=8.1.3
34+
before_install:
35+
- nvm install $NODE_VERSION
36+
- nvm use $NODE_VERSION
3537
before_script:
3638
- node -e 'require("./lib/index.js")'
3739
- psql -c 'create database parse_server_postgres_adapter_test_database;' -U postgres

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,10 @@
5555
"bcrypt-nodejs": "0.0.3",
5656
"cross-env": "5.0.2",
5757
"deep-diff": "0.3.8",
58-
"eslint": "^4.0.0",
58+
"eslint": "^4.4.1",
5959
"eslint-plugin-flowtype": "^2.25.0",
6060
"gaze": "1.1.2",
61-
"jasmine": "2.6.0",
61+
"jasmine": "2.7.0",
6262
"jasmine-spec-reporter": "^4.1.0",
6363
"mongodb-runner": "3.5.0",
6464
"nodemon": "1.11.0",

src/Adapters/Storage/Postgres/PostgresStorageAdapter.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1452,11 +1452,11 @@ function literalizeRegexPart(s) {
14521452
// remove all instances of \Q and \E from the remaining text & escape single quotes
14531453
return (
14541454
s.replace(/([^\\])(\\E)/, '$1')
1455-
.replace(/([^\\])(\\Q)/, '$1')
1456-
.replace(/^\\E/, '')
1457-
.replace(/^\\Q/, '')
1458-
.replace(/([^'])'/, `$1''`)
1459-
.replace(/^'([^'])/, `''$1`)
1455+
.replace(/([^\\])(\\Q)/, '$1')
1456+
.replace(/^\\E/, '')
1457+
.replace(/^\\Q/, '')
1458+
.replace(/([^'])'/, `$1''`)
1459+
.replace(/^'([^'])/, `''$1`)
14601460
);
14611461
}
14621462

src/vendor/mongodbUrl.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -255,8 +255,8 @@ Url.prototype.parse = function(url, parseQueryString, slashesDenoteHost) {
255255
hostEnd = i;
256256
break;
257257
case 64: // '@'
258-
// At this point, either we have an explicit point where the
259-
// auth portion cannot go past, or the last @ char is the decider.
258+
// At this point, either we have an explicit point where the
259+
// auth portion cannot go past, or the last @ char is the decider.
260260
atSign = i;
261261
nonHost = -1;
262262
break;

0 commit comments

Comments
 (0)