lz233 / Tarnhelm

The magic to clean sharing links up.
https://tarnhelm.project.ac.cn
GNU General Public License v3.0
426 stars 17 forks source link

bug/请教 正则表达式规则无法匹配? #49

Closed 3049298988 closed 6 months ago

3049298988 commented 6 months ago

哔哩哔哩牛皮癣

tarnhelm://rule?regex=eyJhIjoi5ZOU5ZOp5ZOU5ZOp54mb55qu55mjIiwiYiI6WyJbMC05XSooID8pYmlsaWJpbGk6XC9cL29wdXNcL2RldGFpbFwvLioiXSwiYyI6WyIiXSwiZCI6IkZUUmVleSJ9
正则:
         [0-9]*( ?)bilibili://opus/detail/.*
替换:

作者:
         FTReey

预期效果:

2233 bilibili://opus/detail/数字?jump_opus=1&jump_opus_type=1&ts=数字&spmid=数字.click.visitFirstAwakePopup&h5_buvid=字母与数字infoc&unique_k=字母与数字&bsource=share_source_qqchat&openid=&wxfid=&jump_opus=1&jump_opus_type=1

被替换为:

实际被替换为:

2233 bilibili://opus/detail/数字?jump_opus=1&jump_opus_type=1&ts=数字&spmid=数字.click.visitFirstAwakePopup&h5_buvid=字母与数字infoc&unique_k=字母与数字&bsource=share_source_qqchat&openid=&wxfid=&jump_opus=1&jump_opus_type=1
lz233 commented 6 months ago

内置的正则只会匹配 http 协议的 URI