babel-plugin-add-regex-unicode
Babel plugin to add regex Unicode flag
This babel plugin will add /u
flag to all your literal unicode regexp so
that you don't need to remember to do it.
Off course it won't add it twice ;)
Now you can have fun with regex sleeping safely at night that you are handling unicode correctly
$ npm install babel-plugin-add-regex-unicode --save-dev
.babelrc
Source Code:
var regex = /anything/;
Output Code:
var regex = /anything/u;
License
MIT © Gilad Peleg