From 78cb707a583654b0dfaa3c4f8764b7656c2a3ce2 Mon Sep 17 00:00:00 2001 From: Charles Carter <80467899+carter383@users.noreply.github.com> Date: Sun, 13 Jul 2025 13:16:56 +0100 Subject: [PATCH] Update index.spec.ts QOL Improvement, Fixes Issue with accidental Double spacing in disable comments {% # theme-check-disable LiquidFilter, RenderMarkup %} Now works the same as {% # theme-check-disable LiquidFilter, RenderMarkup %} --- packages/theme-check-common/src/disabled-checks/index.spec.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/theme-check-common/src/disabled-checks/index.spec.ts b/packages/theme-check-common/src/disabled-checks/index.spec.ts index b8d4a2f55..fc8c5c0cc 100644 --- a/packages/theme-check-common/src/disabled-checks/index.spec.ts +++ b/packages/theme-check-common/src/disabled-checks/index.spec.ts @@ -5,8 +5,8 @@ import { LiquidFilter, RenderMarkup } from './test-checks'; import { UndefinedObject } from '../checks/undefined-object'; const commentTypes = [ - (text: string) => `{% # ${text} %}`, - (text: string) => `{% comment %}${text}{% endcomment %}`, + (text: string) => `{% # ${text.replace(/\s+/g, ' ').trim()} %}`, + (text: string) => `{% comment %}${text.replace(/\s+/g, ' ').trim()} {% endcomment %}`, ]; function expectLiquidFilterOffense(offenses: Offense[], file: string, assetName: string) {