lib: refactor code with startsWith/endsWith
authorJackson Tian <shyvo1987@gmail.com>
Thu, 17 Mar 2016 04:23:52 +0000 (12:23 +0800)
committerMyles Borins <mborins@us.ibm.com>
Fri, 8 Apr 2016 21:16:43 +0000 (17:16 -0400)
commitc4103b154f77951b4f1a0af392e7a0fc7a808b96
treef097a7b7d785d4747494081db21034ee5faab287
parent6d3822c12bbb5d9d2cecf5fa13b1c2ca08eeef8c
lib: refactor code with startsWith/endsWith

reduce using RegExp for string test. This pull reuqest replaces
various usages of regular expressions in favor of the ES2015
startsWith and endsWith methods.

PR-URL: https://github.com/nodejs/node/pull/5753
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Brian White <mscdex@mscdex.net>
lib/_debug_agent.js
lib/_debugger.js
lib/cluster.js
lib/os.js
lib/readline.js
lib/repl.js
lib/tls.js