Nikerabbit has uploaded a new change for review.
https://gerrit.wikimedia.org/r/222161
Change subject: Fix regex
......................................................................
Fix regex
Change-Id: I083deca21a3c1636a72f6e828a21aa33e7a2a652
---
M groups/Pywikibot/Suggester.php
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://gerrit.wikimedia.org:29418/translatewiki
refs/changes/61/222161/1
diff --git a/groups/Pywikibot/Suggester.php b/groups/Pywikibot/Suggester.php
index ef5c221..d90d7fa 100644
--- a/groups/Pywikibot/Suggester.php
+++ b/groups/Pywikibot/Suggester.php
@@ -9,7 +9,7 @@
public function getInsertables( $text ) {
// %(title)s
$matches = array();
- preg_match_all( '\%\([^)]+\)[diouxXeEfFgGcrs]/U', $text,
$matches, PREG_SET_ORDER );
+ preg_match_all( '/\%\([^)]+\)[diouxXeEfFgGcrs]/U', $text,
$matches, PREG_SET_ORDER );
$insertables = array_map( function( $match ) {
return new Insertable( $match[0], $match[0] );
}, $matches );
--
To view, visit https://gerrit.wikimedia.org/r/222161
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I083deca21a3c1636a72f6e828a21aa33e7a2a652
Gerrit-PatchSet: 1
Gerrit-Project: translatewiki
Gerrit-Branch: master
Gerrit-Owner: Nikerabbit <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits