Commit 20efbffa authored by Rich Trott's avatar Rich Trott Committed by James M Snell
Browse files

lib: refactor bootstrap_node.js regular expression

* use `+` instead of `*` where one-or-more is required
* switch from String.prototype.match() to RegExp.prototype.test()

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


Reviewed-By: default avatarJames M Snell <jasnell@gmail.com>
Reviewed-By: default avatarJeremiah Senkpiel <fishrock123@rocketmail.com>
Reviewed-By: default avatarJackson Tian <shyvo1987@gmail.com>
parent 4424e847
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