od.js

Turn on old driver mode for HacgGodTurn

< Feedback on od.js

Question/comment

§
Posted: 2020-04-22

更改磁链正则,防止度盘标准码格式误判为磁链格式

现在各站流行度盘标准码,如: 7A1A902AC060E65DC8E6728E254BE8AD#2B9AE735FEE3A2F3DCA3893D541EA950#854090586#R1716.rar 正则格式是\w{32}#\w{32}#.+ 与脚本中的磁链格式regObj={btih:/(?:magnet:\?xt=urn:btih)?((?:[^\/=|\"]|^)\s*\b)([a-f0-9]{40}|[a-z0-9]{32})\b/gi, 有冲突,会被误判成两个磁链

建议更改磁链正则为 /(?:magnet:\?xt=urn:btih)?((?:[^\/=|\"]|^)\s*\b)([a-f0-9]{40}|[a-z0-9]{32})(?:[^#\w]|$)/gi 就是把最后的\b替换成(?:[^#\w]|$)

Post reply

Sign in to post a reply.