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

网址提取规则该怎么填 #26

Closed zyh941 closed 1 year ago

zyh941 commented 1 year ago

你好开发者,我最近遇到了这种带中文的网址,试了正则和参数,都无法把多余的部分清除,不知有没有合适的方法?示例网址(text=后面就是中文,但其实提取到#前就可以正常访问了,不含#): https://zhuanlan.zhihu.com/p/537022236#:~:text=%E6%A0%B9%E6%8D%AE%E3%80%8A%E4%BA%BA%E6%B0%91%E8%AD%A6%E5%AF%9F%E6%B3%95,%E4%BB%A5%E5%AE%9E%E8%A1%8C%E4%BA%A4%E9%80%9A%E7%AE%A1%E5%88%B6%E3%80%82

lz233 commented 1 year ago

tarnhelm://rule?regex=eyJhIjoidGVzdCIsImIiOlsiIy4qIl0sImMiOlsiIl0sImQiOiJsejIzMyJ9