Closed Muditxofficial closed 3 years ago
@Muditxofficial Sorry for the late response. This is a good start, but will detect every time class=draft
occurs on the talk page, even when it's not in a WikiProject template. Honestly, the odds of it creating an error are really low, but I'd rather not risk it. You should change the regular expression so that it requires that {{wikiproject
comes before the class=draft part, and }}
comes after it. You can use capturing groups to do that. Try to understand what my attempt in https://github.com/WPAFC/afch-rewrite/issues/115#issuecomment-783172502 does - it uses capturing groups (), the "any" character .
, and the "1 or more, as few as possible" quantifier +?
. (Yeah, I told you in Zulip that any occurrence of class=draft
would work - I was speaking imprecisely and will try to avoid doing that in the future, and that was incorrect.)
(see previous comment)
Yes, i have seen it and will try to make changes in one or two days.
issue reference #115