A source code transpiler that
regexpu
regexpu is a source code transpiler that enables the use of ES2015 Unicode regular expressions in JavaScript-of-today (ES5). It rewrites regular expressions that make use of the ES2015 u
flag into equivalent ES5-compatible regular expressions.
Here’s an online demo.
Traceur v0.0.61+, Babel v1.5.0+, esnext v0.12.0+, and Bublé v0.12.0+ use regexpu for their u
regexp transpilation. The REPL demos for Traceur, Babel, esnext, and Bublé let you try u
regexps as well as other ES.next features.
Consider a file named example-es2015.js
with the following contents:
var string = 'foo
版权声明:
1、该文章(资料)来源于互联网公开信息,我方只是对该内容做点评,所分享的下载地址为原作者公开地址。2、网站不提供资料下载,如需下载请到原作者页面进行下载。