From 94175832f4f46052e325eab605059ec3aa7009d7 Mon Sep 17 00:00:00 2001 From: Michael Ficarra Date: Tue, 30 Sep 2025 09:30:23 -0600 Subject: [PATCH] remove incorrect and unhelpful comment The comment didn't mention the `/` character which is matched by the actual regexp. Also, it doesn't seem helpful to just list the characters in a character class in a different order. --- src/index.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 7d874bc..c530ac4 100644 --- a/src/index.ts +++ b/src/index.ts @@ -172,7 +172,6 @@ interface Instruction { definitions: Record } -// equivalent to /["\n\r\t\b\f\v]/ const findEscapeSequence = /["\b\t\n\v\f\r\/]/ const SANITIZE = {