After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 754961 - Support regular expressions for fn:replace()
Support regular expressions for fn:replace()
Status: RESOLVED FIXED
Product: tracker
Classification: Core
Component: General
unspecified
Other Linux
: Normal enhancement
: ---
Assigned To: tracker-general
tracker-general
Depends on:
Blocks:
 
 
Reported: 2015-09-13 14:31 UTC by Kevin Haller
Modified: 2016-05-08 17:47 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Implementation for the regular expression support. (10.18 KB, patch)
2015-09-13 19:41 UTC, Kevin Haller
none Details | Review
Test cases for the fn:replace() function. (10.10 KB, patch)
2015-09-13 19:46 UTC, Kevin Haller
none Details | Review

Description Kevin Haller 2015-09-13 14:31:10 UTC
The support of regular expressions for fn:replace() would open new possibilities. (http://www.w3.org/TR/xpath-functions/#func-replace)

f.e. this bug (https://bugzilla.gnome.org/show_bug.cgi?id=742531) of gnome-music could be easily solved.
Comment 1 Kevin Haller 2015-09-13 19:41:11 UTC
Created attachment 311241 [details] [review]
Implementation for the regular expression support.

Proposal for the implementation.
Comment 2 Kevin Haller 2015-09-13 19:46:19 UTC
Created attachment 311243 [details] [review]
Test cases for the fn:replace() function.

Adds five test cases.
Comment 3 Carlos Garnacho 2016-05-08 17:47:44 UTC
Thanks for the patches! I pushed those to master/1.9 with some minor refactors and leak fixes.