diff options
Diffstat (limited to '')
-rw-r--r-- | utils/board.js | 30 | ||||
-rw-r--r-- | utils/checks.js | 14 |
2 files changed, 22 insertions, 22 deletions
diff --git a/utils/board.js b/utils/board.js index f9a3b9d..523e1ec 100644 --- a/utils/board.js +++ b/utils/board.js @@ -1,19 +1,19 @@ export const emptyBoard = [ - [ "", "", "", "", "","", "", "", "", "", "", "", "", "", "" ], - [ "", "", "", "", "","", "", "", "", "", "", "", "", "", "" ], - [ "", "", "", "", "","", "", "", "", "", "", "", "", "", "" ], - [ "", "", "", "", "","", "", "", "", "", "", "", "", "", "" ], - [ "", "", "", "", "","", "", "", "", "", "", "", "", "", "" ], - [ "", "", "", "", "","", "", "", "", "", "", "", "", "", "" ], - [ "", "", "", "", "","", "", "", "", "", "", "", "", "", "" ], - [ "", "", "", "", "","", "", "", "", "", "", "", "", "", "" ], - [ "", "", "", "", "","", "", "", "", "", "", "", "", "", "" ], - [ "", "", "", "", "","", "", "", "", "", "", "", "", "", "" ], - [ "", "", "", "", "","", "", "", "", "", "", "", "", "", "" ], - [ "", "", "", "", "","", "", "", "", "", "", "", "", "", "" ], - [ "", "", "", "", "","", "", "", "", "", "", "", "", "", "" ], - [ "", "", "", "", "","", "", "", "", "", "", "", "", "", "" ], - [ "", "", "", "", "","", "", "", "", "", "", "", "", "", "" ] + [ '', '', '', '', '','', '', '', '', '', '', '', '', '', '' ], + [ '', '', '', '', '','', '', '', '', '', '', '', '', '', '' ], + [ '', '', '', '', '','', '', '', '', '', '', '', '', '', '' ], + [ '', '', '', '', '','', '', '', '', '', '', '', '', '', '' ], + [ '', '', '', '', '','', '', '', '', '', '', '', '', '', '' ], + [ '', '', '', '', '','', '', '', '', '', '', '', '', '', '' ], + [ '', '', '', '', '','', '', '', '', '', '', '', '', '', '' ], + [ '', '', '', '', '','', '', '', '', '', '', '', '', '', '' ], + [ '', '', '', '', '','', '', '', '', '', '', '', '', '', '' ], + [ '', '', '', '', '','', '', '', '', '', '', '', '', '', '' ], + [ '', '', '', '', '','', '', '', '', '', '', '', '', '', '' ], + [ '', '', '', '', '','', '', '', '', '', '', '', '', '', '' ], + [ '', '', '', '', '','', '', '', '', '', '', '', '', '', '' ], + [ '', '', '', '', '','', '', '', '', '', '', '', '', '', '' ], + [ '', '', '', '', '','', '', '', '', '', '', '', '', '', '' ] ]; export const letters_total = 102; diff --git a/utils/checks.js b/utils/checks.js index 85c51df..e823cf7 100644 --- a/utils/checks.js +++ b/utils/checks.js @@ -1,15 +1,15 @@ -import { check } from "express-validator"; +import { check } from 'express-validator'; -export const checkName = check("name") +export const checkName = check('name') .trim() .matches(/^[a-z][-a-z0-9_]+$/i) - .withMessage("Un identifiant d'au moins deux charactères est requis."); + .withMessage('Un identifiant d\'au moins deux charactères est requis.'); -export const checkPassword = check("password") +export const checkPassword = check('password') .isStrongPassword() - .withMessage("Veuillez utiliser un mot de passe d'au moins 8 caractères contenant au moins une minuscule, majuscule, chiffre et charactère spécial."); + .withMessage('Veuillez utiliser un mot de passe d\'au moins 8 caractères contenant au moins une minuscule, majuscule, chiffre et charactère spécial.'); -export const checkUsername = check("username") +export const checkUsername = check('username') .trim() .matches(/^[a-z][-a-z0-9_]+$/i) - .withMessage("Un identifiant d'au moins deux charactères est requis."); + .withMessage('Un identifiant d\'au moins deux charactères est requis.'); |