Skip to content
Extraits de code Groupes Projets
Valider 8ec8ed4b rédigé par Adrien NUNES's avatar Adrien NUNES
Parcourir les fichiers

fix voteparser

parent 36f87c57
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -38,13 +38,13 @@ class VoteParser{ ...@@ -38,13 +38,13 @@ class VoteParser{
} }
categoryCase(category, content){ categoryCase(category, content){
if(category === CATEGORY.SOURCE || category === CATEGORY.SENTENCE){ if(category === Category.SOURCE || category === Category.SENTENCE){
return content; return content;
} }
const char = content.charAt(0); const char = content.charAt(0);
const reste = content.slice(1); const reste = content.slice(1);
content = (category === CATEGORY.ACTOR) ? char.toUpperCase() + reste: char.toLowerCase() + reste; content = (category === Category.ACTOR) ? char.toUpperCase() + reste: char.toLowerCase() + reste;
return content; return content;
} }
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter