chensenlai 10988628a0 语音房项目初始化 | %!s(int64=5) %!d(string=hai) anos | |
---|---|---|
.. | ||
bin | %!s(int64=5) %!d(string=hai) anos | |
CHANGELOG | %!s(int64=5) %!d(string=hai) anos | |
LICENSE.BSD | %!s(int64=5) %!d(string=hai) anos | |
README.md | %!s(int64=5) %!d(string=hai) anos | |
package.json | %!s(int64=5) %!d(string=hai) anos | |
parser.js | %!s(int64=5) %!d(string=hai) anos |
Parsing the JavaScript's RegExp in JavaScript.
npm install regjsparser
var parse = require('regjsparser').parse;
var parseTree = parse('^a'); // /^a/
console.log(parseTree);
To run the tests, run the following command:
npm test
To create a new reference file, execute…
node test/update-fixtures.js
…from the repo top directory.