Commit 390fa038 authored by Vse Mozhet Byt's avatar Vse Mozhet Byt
Browse files

cluster, dns, repl, tls, util: fix RegExp nits

* Take RegExp creation out of cycles.
* Use test(), not match() in boolean context.
* Remove redundant RegExp parts.

PR-URL: https://github.com/nodejs/node/pull/13536


Reviewed-By: default avatarAnna Henningsen <anna@addaleax.net>
parent a2fdb766
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment