Added !stats command

This commit is contained in:
Damien Broqua 2019-12-25 13:10:13 +01:00
parent 08b2d46a43
commit ef694b116f
7 changed files with 201 additions and 78 deletions

View file

@ -1,8 +1,14 @@
module.exports = {
formatString: function (string) {
if (string !== undefined && string !== null) {
return new RegExp('^' + string.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, '\\$&') + '$', 'i')
}
return ';'
/**
* Fonction permettant d'être insensible à la casse
* @param {String} string
*/
function formatString (string) {
if (string !== undefined && string !== null) {
return new RegExp('^' + string.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, '\\$&') + '$', 'i')
}
return ';'
}
module.exports = {
formatString: formatString
}