Disable article addition in lint script
This commit is contained in:
parent
5c3665fd9d
commit
1bc40e2464
1 changed files with 4 additions and 1 deletions
|
@ -29,7 +29,7 @@ const articles = {
|
||||||
}
|
}
|
||||||
|
|
||||||
function addArticleToPresets(layerConfig: {presets?: {title: any}[]}){
|
function addArticleToPresets(layerConfig: {presets?: {title: any}[]}){
|
||||||
//*
|
/*
|
||||||
if(layerConfig.presets === undefined){
|
if(layerConfig.presets === undefined){
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
@ -50,6 +50,9 @@ function addArticleToPresets(layerConfig: {presets?: {title: any}[]}){
|
||||||
if(txt.startsWith(article+" ")){
|
if(txt.startsWith(article+" ")){
|
||||||
return txt;
|
return txt;
|
||||||
}
|
}
|
||||||
|
if(txt.startsWith("an ")){
|
||||||
|
return txt;
|
||||||
|
}
|
||||||
return article +" " + txt.toLowerCase();
|
return article +" " + txt.toLowerCase();
|
||||||
})
|
})
|
||||||
.translations
|
.translations
|
||||||
|
|
Loading…
Reference in a new issue