Added !stats command
This commit is contained in:
parent
08b2d46a43
commit
ef694b116f
7 changed files with 201 additions and 78 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue