Wikipedia:Bots/Requests for approval/ScannerBot: Difference between revisions

Content deleted Content added
Discussion: replying to Headbomb: (@Headbomb, for what it's worth, I believ...) [Bawl!]
Discussion: Fix indent [Bawl!]
Line 70:
:::::::Yes because {{code|.}} and {{code|\.}} have different meanings in regex. [[User:0xDeadbeef|<span style="font-family:Fira Mono,Courier New,monospace">0x<span style="text-transform:uppercase">Deadbeef</span></span>]] <span style="font-family: serif">([[User talk:0xDeadbeef|T]] [[Special:Contributions/0xDeadbeef|C]])</span> 02:30, 17 May 2022 (UTC)
::::::::I know. Just surprised one needs escaping and the other doesn't. Not important, if the code works, it works. &#32;<span style="font-variant:small-caps; whitespace:nowrap;">[[User:Headbomb|Headbomb]] {[[User talk:Headbomb|t]] · [[Special:Contributions/Headbomb|c]] · [[WP:PHYS|p]] · [[WP:WBOOKS|b]]}</span> 10:24, 17 May 2022 (UTC)
:┌─────────────────────┘<br/>::::::::@[[User:Headbomb|Headbomb]], for what it's worth, I believe it's because some non-python RegEx is enclosed in / . . . /, so <code><nowiki>/</nowiki></code> needs to be escaped, but in python RegEx is just given as a string ' . . . '&nbsp;&#8213;&nbsp;<span id="Qwerfjkl:1653834173516:WikipediaBWLCLNBots/Requests_for_approval/ScannerBot" class="BawlCmt">[[User:Qwerfjkl|<span style="background:#1d9ffc; color:white; padding:5px; box-shadow:darkgray 2px 2px 2px;">Qwerfjkl</span>]][[User talk:Qwerfjkl|<span style="background:#79c0f2;color:white; padding:2px; box-shadow:darkgray 2px 2px 2px;">talk</span>]] 14:22, 29 May 2022 (UTC)</span>
: You'll want to detect primary URLs, or skip archive URLs, changing those will break them. Archive URLs can be 20+ types, it's probably easiest to detect if the twitter URL starts with "/" (example in [[Brandon Clarke]]). -- [[User:GreenC|<span style="color: #006A4E;">'''Green'''</span>]][[User talk:GreenC|<span style="color: #093;">'''C'''</span>]] 16:15, 14 May 2022 (UTC)
::Yeah, I should probably match {{code|[^/]}} or <code><nowiki>[\s=>]</nowiki></code> for it to be primary. [[User:0xDeadbeef|<span style="font-family:Fira Mono,Courier New,monospace">0x<span style="text-transform:uppercase">Deadbeef</span></span>]] <span style="font-family: serif">([[User talk:0xDeadbeef|T]] [[Special:Contributions/0xDeadbeef|C]])</span> 02:07, 15 May 2022 (UTC)