🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more

babel-plugin-transform-dotall-regex

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-plugin-transform-dotall-regex - npm Package Compare versions

Comparing version

to
1.0.1

{
"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 [![Build status](https://travis-ci.org/mathiasbynens/babel-plugin-transform-dotall-regex.svg?branch=master)](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 @@