We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
not
1 parent d637ad1 commit 12724d0Copy full SHA for 12724d0
1 file changed
packages/theme-check-common/src/checks/liquid-html-syntax-error/index.ts
@@ -25,7 +25,7 @@ function isParsingErrorWithLocation(
25
function cleanErrorMessage(message: string, highlight: string): string {
26
return message
27
.replace(/Line \d+, col \d+:\s+/, 'SyntaxError: ')
28
- .replace(/(?!<expected ".+",) not .*/, ` not "${highlight}"`);
+ .replace(/ not (?:\(.*?\)|.*?)(?=, | or |$)/, ` not "${highlight}"`);
29
}
30
31
export const LiquidHTMLSyntaxError: LiquidCheckDefinition = {
0 commit comments