benchmark,lib,test,tools: remove unneeded . escape · nodejs/node@7b4268b · GitHub
Skip to content

Commit 7b4268b

Browse files
TrottMylesBorins
authored andcommitted
benchmark,lib,test,tools: remove unneeded . escape
The `.` character does not need to be escaped when it appears inside a regular expression character class. This removes instances of unnecessary escapes of the `.` character. This also removes a few unnecessary escapes of the `(` and `)` characters within character classes too. PR-URL: #9449 Reviewed-By: Roman Reiss <me@silverwind.io> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Minwoo Jung <jmwsoft@gmail.com> Reviewed-By: James Snell <jasnell@gmail.com>
1 parent 3d45b35 commit 7b4268b

3 files changed

Lines changed: 7 additions & 7 deletions

File tree

lib/_tls_wrap.js

Lines changed: 2 additions & 2 deletions

test/parallel/test-repl.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ function error_test() {
7272
if (read_buffer !== client_unix.expect) {
7373
var expect = client_unix.expect;
7474
if (expect === prompt_multiline)
75-
expect = /[\.]{3} /;
75+
expect = /[.]{3} /;
7676
assert.ok(read_buffer.match(expect));
7777
console.error('match');
7878
}

tools/doc/json.js

Lines changed: 4 additions & 4 deletions

0 commit comments

Comments
 (0)