mirror of
https://github.com/nodejs/node.git
synced 2025-08-16 06:08:50 +02:00
tools: add unescaped regexp dot rule to linter
PR-URL: https://github.com/nodejs/node/pull/11834 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Teddy Katz <teddy.katz@gmail.com> Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com>
This commit is contained in:
parent
678480e328
commit
61ebfa8d1f
35 changed files with 214 additions and 47 deletions
|
@ -923,7 +923,7 @@ assert.throws(() => Buffer.allocUnsafe(10).copy(),
|
|||
/TypeError: argument should be a Buffer/);
|
||||
|
||||
const regErrorMsg = new RegExp('First argument must be a string, Buffer, ' +
|
||||
'ArrayBuffer, Array, or array-like object.');
|
||||
'ArrayBuffer, Array, or array-like object\\.');
|
||||
|
||||
assert.throws(() => Buffer.from(), regErrorMsg);
|
||||
assert.throws(() => Buffer.from(null), regErrorMsg);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue