Skip to content

Commit eb9653c

Browse files
authored
Remove false-positive apache-exploit.
1 parent c2b0070 commit eb9653c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/indexOf.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -345,9 +345,9 @@ tape('indexOf the entire nodejs10 buffer test suite', (t) => {
345345

346346
// Search for a non-ASCII string in a pure ASCII string.
347347
const asciiString = Buffer.from(
348-
'arglebargleglopglyfarglebargleglopglyfarglebargleglopglyf')
348+
'somethingnotatallsinisterwhichalsoworks')
349349
t.equal(-1, asciiString.indexOf('\x2061'))
350-
t.equal(3, asciiString.indexOf('leb', 0))
350+
t.equal(3, asciiString.indexOf('eth', 0))
351351

352352
// Search in string containing many non-ASCII chars.
353353
const allCodePoints = []

0 commit comments

Comments
 (0)