amis-rpc-design/node_modules/core-js/internals/regexp-unsupported-dot-all.js
2023-10-07 19:42:30 +08:00

12 lines
363 B
JavaScript

'use strict';
var fails = require('../internals/fails');
var global = require('../internals/global');
// babel-minify and Closure Compiler transpiles RegExp('.', 's') -> /./s and it causes SyntaxError
var $RegExp = global.RegExp;
module.exports = fails(function () {
var re = $RegExp('.', 's');
return !(re.dotAll && re.exec('\n') && re.flags === 's');
});