mirror of
https://framagit.org/JonathanMM/sutom.git
synced 2025-04-15 22:25:13 +02:00
Amélioration du dictionnaire
This commit is contained in:
parent
e4aec89edd
commit
c17c9c2df3
3 changed files with 424 additions and 3 deletions
4
.gitignore
vendored
4
.gitignore
vendored
|
@ -1,7 +1,7 @@
|
|||
config/
|
||||
data/
|
||||
js/
|
||||
mots/
|
||||
mots/**
|
||||
node_modules/
|
||||
ts/mots/listeMotsATrouver.*.ts
|
||||
ts/mots/listeMotsATrouver.ts
|
||||
cron.prod.sh
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -31,7 +31,10 @@ fs.readFile("data/mots.txt", "UTF8", function (erreur, contenu) {
|
|||
!mot.toUpperCase().startsWith("X") &&
|
||||
!mot.toUpperCase().startsWith("Y") &&
|
||||
!mot.toUpperCase().startsWith("Z")
|
||||
);
|
||||
)
|
||||
.filter(function (elem, index, self) {
|
||||
return index === self.indexOf(elem);
|
||||
});
|
||||
dictionnaire.sort();
|
||||
contenu = "public static readonly Dictionnaire: Array<string> = [\n";
|
||||
contenu += dictionnaire
|
||||
|
|
Loading…
Add table
Reference in a new issue