the remove-extra-dashes script no longer removes dashes at the beginning or at the end of the words
This commit is contained in:
parent
6086a08508
commit
7629b9914d
1 changed files with 1 additions and 1 deletions
|
|
@ -61,7 +61,7 @@ function removeCompoundWords(locale, words, lowerCaseWords, separator) {
|
||||||
const uniqueWords = new Set();
|
const uniqueWords = new Set();
|
||||||
words.forEach(w => {
|
words.forEach(w => {
|
||||||
// simple words
|
// simple words
|
||||||
if (!w.includes(separator)) {
|
if (!w.includes(separator) || w.startsWith(separator) || w.endsWith(separator)) {
|
||||||
uniqueWords.add(w);
|
uniqueWords.add(w);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue