Spaces:
Configuration error
Configuration error
Download node_modules/es-abstract/2023/IsRegExp.js from W404NET/Telegram-Chat-Bot: direct link, hf CLI and curl.
- Browser
- Download file 540 Bytes
-
https://huggingface.co/spaces/W404NET/Telegram-Chat-Bot/resolve/main/node_modules/es-abstract/2023/IsRegExp.js
- Command line
-
hf download hf://spaces/W404NET/Telegram-Chat-Bot/node_modules/es-abstract/2023/IsRegExp.js
-
curl -L -o IsRegExp.js https://huggingface.co/spaces/W404NET/Telegram-Chat-Bot/resolve/main/node_modules/es-abstract/2023/IsRegExp.js
540 Bytes
| ; | |
| var GetIntrinsic = require('get-intrinsic'); | |
| var $match = GetIntrinsic('%Symbol.match%', true); | |
| var hasRegExpMatcher = require('is-regex'); | |
| var ToBoolean = require('./ToBoolean'); | |
| // https://262.ecma-international.org/6.0/#sec-isregexp | |
| module.exports = function IsRegExp(argument) { | |
| if (!argument || typeof argument !== 'object') { | |
| return false; | |
| } | |
| if ($match) { | |
| var isRegExp = argument[$match]; | |
| if (typeof isRegExp !== 'undefined') { | |
| return ToBoolean(isRegExp); | |
| } | |
| } | |
| return hasRegExpMatcher(argument); | |
| }; | |