[RegExp] 匹配索引
作者: uufc创建于 2026年2月5日更新于 2026年3月6日
标签enhancementhelp wanted
执行: const test = new RegExp('.', 'd'); 输出: Uncaught SyntaxError: Invalid flags supplied to RegExp constructor 'd' at new RegExp(<anonymous>) at <anonymous>:1:14 (anonymous) @ VM524:1
内容来源: zloirock/core-js