From 0d3f91b424e81aa79fc2ec021d921d4d21f3e6ef Mon Sep 17 00:00:00 2001 From: Levon Khachatryan <10566530+khlevon@users.noreply.github.com> Date: Fri, 14 Apr 2023 02:36:04 +0400 Subject: [PATCH] fix: code parser (#1203) oversight when reading js code with special characters from html pages closes #1197 closes #1201 closes #1204 closes #1207 --- lib/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/utils.js b/lib/utils.js index 705c8dd3..143ef1ff 100644 --- a/lib/utils.js +++ b/lib/utils.js @@ -60,7 +60,7 @@ const ESCAPING_SEQUENZES = [ { start: "'", end: "'" }, { start: '`', end: '`' }, // RegeEx - { start: '/', end: '/', startPrefix: /(^|[[{:;,])\s?$/ }, + { start: '/', end: '/', startPrefix: /(^|[[{:;,/])\s?$/ }, ]; /**