babel-plugin-transform-dotall-regex
Advanced tools
{ | ||
"name": "babel-plugin-transform-dotall-regex", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Compile regular expressions using the `s` (`dotAll`) flag to ES5.", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/mathiasbynens/babel-plugin-transform-dotall-regex", |
@@ -5,6 +5,4 @@ # babel-plugin-transform-dotall-regex [](https://travis-ci.org/mathiasbynens/babel-plugin-transform-dotall-regex) | ||
**Note:** the `s` (`dotAll`) flag is non-standard and may or may not reflect what eventually gets specified. | ||
For example, `/./s` is transpiled into `/[\0-\uFFFF]/`, and `/./su` is transpiled into `/[\0-\u{10FFFF}]/u`. | ||
For example, `/./s` is transpiled into `/\0-\uFFFF/`, and `/./su` is transpiled into `/[\0-\u{10FFFF}]/u`. | ||
[Here’s an online demo.](https://mothereff.in/regexpu#input=const+regex+%3D+/foo.bar/s%3B%0Aconsole.log%28%0A++regex.test%28%27foo%5Cnbar%27%29%0A%29%3B%0A//+%E2%86%92+true&dotAllFlag=1) | ||
@@ -11,0 +9,0 @@ |
3653
-2.87%50
-3.85%