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: dotall-regex
---
NOTE: This plugin is included in
@babel/preset-env
, in ES2018
In
/./s;
Out
/[\0-\uFFFF]/;
In
/./su;
Out
/[\0-\u{10FFFF}]/u;
npm install --save-dev @babel/plugin-transform-dotall-regex
.babelrc
{
"plugins": ["@babel/plugin-transform-dotall-regex"]
}
$ babel --plugins @babel/plugin-transform-dotall-regex script.js
require("@babel/core").transformSync(code, {
plugins: ["@babel/plugin-transform-dotall-regex"],
});
Mathias Bynens |