Ponor added a comment.

  After a quick test, I think we could live with `[\w]` (with re.U) too, which 
still covers a great number of accented characters if this is a problem for you 
guys in Pywikibot.
  
  This does include things like `[[link]]42 → [[link|link42]]` and 
`[[link]]_trail → [[link|link_trail]]`, but that shouldn't be unexpected. 
There's no regular use case that I can think of with `\d`s and `_`s.
  
  The reason why I chose `\p{L}` is because I wanted to see if it could be used 
for (many) other languages that need it. All these regex patterns were, more of 
less, c&p'd from one MessageXX.php to another a long time ago, though things 
are not really working. MessagesEn.php did include a `\p{L&}`, but that failed 
for some other reasons at the time.
  
  So if you're not willing to experiment with `\p{L}` and if anyone reading 
this can give me a quick +2, I'll prepare a patch.

TASK DETAIL
  https://phabricator.wikimedia.org/T378787

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Xqt, Ponor
Cc: Xqt, Ponor, Reedy, binbot, Aklapper, pywikibot-bugs-list, JJMC89, mevo, 
PotsdamLamb, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Aram, 
Viztor, Wenyi, Tbscho, MayS, Mdupont, Dvorapa, Altostratus, Avicennasis, 
mys_721tx, jayvdb, Masti, Alchimista
_______________________________________________
pywikibot-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to