Skip to content

Commit

Permalink
Merge pull request #80 from annitya/patch-1
Browse files Browse the repository at this point in the history
Remove false-positive Apache-exploit (Fixes #79).
  • Loading branch information
mcollina committed Mar 4, 2020
2 parents c2b0070 + eb9653c commit 72d1624
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/indexOf.js
Expand Up @@ -345,9 +345,9 @@ tape('indexOf the entire nodejs10 buffer test suite', (t) => {

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

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

0 comments on commit 72d1624

Please sign in to comment.