From bc541bad1608f4d08b8ff5f7f1d7fe0842467a77 Mon Sep 17 00:00:00 2001 From: pietervdvn Date: Tue, 7 Jun 2022 14:01:27 +0200 Subject: [PATCH] Disable article addition in lint script --- scripts/lint.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/lint.ts b/scripts/lint.ts index 220bb3cc2..8575bdc7a 100644 --- a/scripts/lint.ts +++ b/scripts/lint.ts @@ -29,7 +29,7 @@ const articles = { } function addArticleToPresets(layerConfig: {presets?: {title: any}[]}){ - //* + /* if(layerConfig.presets === undefined){ return } @@ -50,6 +50,9 @@ function addArticleToPresets(layerConfig: {presets?: {title: any}[]}){ if(txt.startsWith(article+" ")){ return txt; } + if(txt.startsWith("an ")){ + return txt; + } return article +" " + txt.toLowerCase(); }) .translations