summaryrefslogtreecommitdiff
path: root/test/parallel/test-tls-server-verify.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-tls-server-verify.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-tls-server-verify.js')
-rw-r--r--test/parallel/test-tls-server-verify.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/parallel/test-tls-server-verify.js b/test/parallel/test-tls-server-verify.js
index 2d7323dc5a..65ddaa5e2d 100644
--- a/test/parallel/test-tls-server-verify.js
+++ b/test/parallel/test-tls-server-verify.js
@@ -217,7 +217,7 @@ function runClient(prefix, port, options, cb) {
client.stdout.on('data', function(d) {
out += d;
- if (!goodbye && /_unauthed/g.test(out)) {
+ if (!goodbye && /_unauthed/.test(out)) {
console.error(`${prefix} * unauthed`);
goodbye = true;
client.kill();
@@ -225,7 +225,7 @@ function runClient(prefix, port, options, cb) {
rejected = false;
}
- if (!goodbye && /_authed/g.test(out)) {
+ if (!goodbye && /_authed/.test(out)) {
console.error(`${prefix} * authed`);
goodbye = true;
client.kill();