Last modified: 2014-02-10 15:02:08 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T62908, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 60908 - mw.ustring does not match %W correctly
mw.ustring does not match %W correctly
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
Scribunto (Other open bugs)
master
All All
: Unprioritized normal (vote)
: ---
Assigned To: Brad Jorsch
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-02-05 17:14 UTC by Brad Jorsch
Modified: 2014-02-10 15:02 UTC (History)
3 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Brad Jorsch 2014-02-05 17:14:44 UTC
From https://en.wikipedia.org/wiki/Module_talk:String#str.match_.26_str.replace_bug:

> In Lua
> 
> string.match("abc,def", "^%w*(%W*)%w*$") returns ,
> 
> but Module:String's implementation
> 
> {{#invoke:String|match|s=abc,def|pattern=^%w*(%W*)%w*$|plain=false}} returns ,def
> 
> which is clearly wrong. — {{carismagic|5 February 2014, 08:58}}

Confirmed that this is a bug in Scribunto. Patch to follow momentarily.
Comment 1 Gerrit Notification Bot 2014-02-05 17:15:07 UTC
Change 111467 had a related patch set uploaded by Anomie:
Fix PHP implementation of mw.ustring %W

https://gerrit.wikimedia.org/r/111467
Comment 2 Gerrit Notification Bot 2014-02-10 00:48:22 UTC
Change 111467 merged by jenkins-bot:
Fix PHP implementation of mw.ustring %W

https://gerrit.wikimedia.org/r/111467
Comment 3 Brad Jorsch 2014-02-10 15:02:08 UTC
This change should be deployed to WMF wikis with 1.23wmf14, see https://www.mediawiki.org/wiki/MediaWiki_1.23/Roadmap for the schedule.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links