Diacritic-helper
A small node.js module that helps to find strings containing diacritics with regular expressions. Useful for accentued search in MongoDB.
Installation
$ npm install diacritic-helper
Usage
JS :
var diacriticHelper = ; var toFind = "noel";var txt = "Vive le Père-Noël !"; // Without diactric-helpervar result1 = txtconsole; // With diactric-helpervar result2 = txtconsole;
Console output :
Vive le Père-Noël !
Vive le Père-Fouettard !