lisonge / vite-plugin-monkey

A vite plugin server and build your.user.js for userscript engine like Tampermonkey, Violentmonkey, Greasemonkey, ScriptCat
MIT License
1.33k stars 70 forks source link

include 配置直接使用正则表达式时输出缺少首尾斜杠 #14

Closed Tsuk1ko closed 2 years ago

Tsuk1ko commented 2 years ago

例如 include: /^xxx$/ 输出获得 // @include ^xxx$,是错误的,应当输出 // @include /^xxx$/

https://www.tampermonkey.net/documentation.php#_include

lisonge commented 2 years ago

确实,我在代码里是直接使用

attrList​.​push​(​[​k​,​ ​v​.​source​]​)​;

谢谢提醒,后面我修改一下

lisonge commented 2 years ago

fix by v2.0.1/CHANGELOG.md#201-bugfixes