Ejegg has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/289255

Change subject: Add /wiki/WP* to landing page patterns
......................................................................

Add /wiki/WP* to landing page patterns

To match WP-Video-2016.  TODO: document the patterns on
https://www.mediawiki.org/wiki/Fundraising_tech/tools

Bug: T132500
Change-Id: I6f114ac2c1cdbbee934d4d81e5793ff31e430d81
---
M fundraiser/analytics/regex.py
1 file changed, 2 insertions(+), 1 deletion(-)


  git pull 
ssh://gerrit.wikimedia.org:29418/wikimedia/fundraising/tools/DjangoBannerStats 
refs/changes/55/289255/1

diff --git a/fundraiser/analytics/regex.py b/fundraiser/analytics/regex.py
index 27170fd..e8dda95 100644
--- a/fundraiser/analytics/regex.py
+++ b/fundraiser/analytics/regex.py
@@ -159,7 +159,7 @@
     ),
     re.compile(
         r"""
-            # match all of the landing page patterns on wmfwiki
+            # match all of the landing page patterns on donatewiki
             (http|https)
             ://
             (?P<sitename>donate.wikimedia.org)/
@@ -171,6 +171,7 @@
                   | L2011               # potential landing page naming scheme 
for 2011
                   | L2012               # potential landing page naming scheme 
for 2012
                   | WMF                 # eg WMFJA085
+                  | WP                  # eg WP-Video-2016
                 )
                 (?:(?!\?|&)[\S])*         # this will give us the landing page 
up to the next ? or &
             )

-- 
To view, visit https://gerrit.wikimedia.org/r/289255
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I6f114ac2c1cdbbee934d4d81e5793ff31e430d81
Gerrit-PatchSet: 1
Gerrit-Project: wikimedia/fundraising/tools/DjangoBannerStats
Gerrit-Branch: master
Gerrit-Owner: Ejegg <eeggles...@wikimedia.org>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to