Skip to content

Latest commit

 

History

History
72 lines (49 loc) · 1.09 KB

plugin-transform-dotall-regex.md

File metadata and controls

72 lines (49 loc) · 1.09 KB
Error in user YAML: (<unknown>): found character that cannot start any token while scanning for the next token at line 2 column 8
---
id: babel-plugin-transform-dotall-regex
title: @babel/plugin-transform-dotall-regex
sidebar_label: transform-dotall-regex
---

Example

In

/./s

Out

/[\0-\uFFFF]/

In

/./su

Out

/[\0-\u{10FFFF}]/u

Here’s an online demo.

Installation

npm install --save-dev @babel/plugin-transform-dotall-regex

Usage

With a configuration file (Recommended)

.babelrc

{
  "plugins": ["@babel/plugin-transform-dotall-regex"]
}

Via CLI

$ babel --plugins @babel/plugin-transform-dotall-regex script.js

Via Node.js API

require('@babel/core').transform(code, {
  'plugins': ['@babel/plugin-transform-dotall-regex']
});

Author

twitter/mathias
Mathias Bynens