Skip to content

Commit 72d1624

Browse files
authored
Merge pull request #80 from annitya/patch-1
Remove false-positive Apache-exploit (Fixes #79).
2 parents c2b0070 + eb9653c commit 72d1624

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)