summaryrefslogtreecommitdiff
path: root/test/parallel/test-http-outgoing-first-chunk-singlebyte-encoding.js
diff options
context:
space:
mode:
authorVse Mozhet Byt <vsemozhetbyt@gmail.com>2017-06-15 03:33:50 +0300
committerVse Mozhet Byt <vsemozhetbyt@gmail.com>2017-06-18 03:57:32 +0300
commitd174e44c77c6330c98f6d5c3bc24782d0e25f529 (patch)
tree47e8344dd434f272c4183ffec1524e8beb62855b /test/parallel/test-http-outgoing-first-chunk-singlebyte-encoding.js
parent3ad90a4ac8aefad4c5d73fc0607649bf2e2f9cfa (diff)
downloadandroid-node-v8-d174e44c77c6330c98f6d5c3bc24782d0e25f529.tar.gz
android-node-v8-d174e44c77c6330c98f6d5c3bc24782d0e25f529.tar.bz2
android-node-v8-d174e44c77c6330c98f6d5c3bc24782d0e25f529.zip
test: remove needless RegExp flags
* /m is needless if ^ and $ are not used * /g is needless in split() * /g is needless in test() with one-time RegExp/String PR-URL: https://github.com/nodejs/node/pull/13690 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com> Reviewed-By: Yuta Hiroto <hello@about-hiroppy.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'test/parallel/test-http-outgoing-first-chunk-singlebyte-encoding.js')
-rw-r--r--test/parallel/test-http-outgoing-first-chunk-singlebyte-encoding.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/parallel/test-http-outgoing-first-chunk-singlebyte-encoding.js b/test/parallel/test-http-outgoing-first-chunk-singlebyte-encoding.js
index 214287a6ff..f1af1dc718 100644
--- a/test/parallel/test-http-outgoing-first-chunk-singlebyte-encoding.js
+++ b/test/parallel/test-http-outgoing-first-chunk-singlebyte-encoding.js
@@ -24,7 +24,7 @@ for (const enc of ['utf8', 'utf16le', 'latin1', 'UTF-8']) {
const headerEnd = received.indexOf('\r\n\r\n', 'utf8');
assert.notStrictEqual(headerEnd, -1);
- const header = received.toString('utf8', 0, headerEnd).split(/\r\n/g);
+ const header = received.toString('utf8', 0, headerEnd).split(/\r\n/);
const body = received.toString(enc, headerEnd + 4);
assert.strictEqual(header[0], 'HTTP/1.1 200 OK');