This changes RegExp constructors into literals if the RegExp arguments are strings.
npm install babel-plugin-transform-regexp-constructors
No README available