https://bugzilla.wikimedia.org/show_bug.cgi?id=60908
Web browser: ---
Bug ID: 60908
Summary: mw.ustring does not match %W correctly
Product: MediaWiki extensions
Version: master
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: Scribunto
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected],
[email protected]
Classification: Unclassified
Mobile Platform: ---
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.
--
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l