1
0
mirror of synced 2026-01-04 18:06:26 -05:00

Upgradeliquidjs 10.13 (#50845)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Grace Park <gracepark@github.com>
This commit is contained in:
Peter Bengtsson
2024-06-12 15:00:10 -04:00
committed by GitHub
parent b58e73c51c
commit c251f6d64e
5 changed files with 18 additions and 7 deletions

View File

@@ -223,7 +223,11 @@ function checkString(
}: { page?: Page; filePath?: string; languageCode?: string; verbose?: boolean } = {},
) {
try {
for (const token of getLiquidTokens(string)) {
// The reason for the `noCache: true` is that we're going to be sending
// a LOT of different strings in and the cache will fill up rapidly
// when testing every possible string in every possible language for
// every page.
for (const token of getLiquidTokens(string, { noCache: true })) {
if (token.name === 'ifversion' || token.name === 'elsif') {
for (const arg of token.args.split(/\s+/)) {
if (IGNORE_ARGS.has(arg)) continue