From eb9653cbec501608677c68004743b2c24f91d23d Mon Sep 17 00:00:00 2001 From: Henning Date: Wed, 4 Mar 2020 16:21:25 +0100 Subject: [PATCH] Remove false-positive apache-exploit. --- test/indexOf.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/indexOf.js b/test/indexOf.js index 1eca5e1..d675d1a 100644 --- a/test/indexOf.js +++ b/test/indexOf.js @@ -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 = []