From 00b4e89651bcb915a040263952eac1b660fbe0c6 Mon Sep 17 00:00:00 2001 From: Timothy Johnson Date: Sat, 24 Nov 2018 23:16:06 -0800 Subject: [PATCH] Rename to svelte-disable --- src/compile/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compile/index.ts b/src/compile/index.ts index a851a10fba..50c1019ae9 100644 --- a/src/compile/index.ts +++ b/src/compile/index.ts @@ -25,7 +25,7 @@ function should_ignore({ start, code, frame }: Warning) { return false; } - const regex = new RegExp(`(?:${start.line - 1}:\\s*|${start.line}:[^\\n]+)`); + const regex = new RegExp(`(?:${start.line - 1}:\\s*`); return regex.test(frame); }