![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/mets.corals.io/wp-content/metras.v32.1/node_modules/regexp-tree/dist/parser/ |
/** * The MIT License (MIT) * Copyright (c) 2017-present Dmitry Soshnikov <[email protected]> */ 'use strict'; var regexpTreeParser = require('./generated/regexp-tree'); /** * Original parse function. */ var generatedParseFn = regexpTreeParser.parse.bind(regexpTreeParser); /** * Parses a regular expression. * * Override original `regexpTreeParser.parse` to convert a value to a string, * since in regexp-tree we may pass strings, and RegExp instance. */ regexpTreeParser.parse = function (regexp, options) { return generatedParseFn('' + regexp, options); }; // By default do not capture locations; callers may override. regexpTreeParser.setOptions({ captureLocations: false }); module.exports = regexpTreeParser;