From 952829714b22a5020afabb02b6bab6ce0c8572fa Mon Sep 17 00:00:00 2001 From: Byron Jones Date: Wed, 8 Jul 2015 15:34:04 +0800 Subject: Bug 1143132: emails about redirected attachment urls link to attachment-edit instead of the actual url (mozreview, github, etc) --- extensions/BMO/lib/Data.pm | 3 +++ 1 file changed, 3 insertions(+) (limited to 'extensions/BMO/lib') diff --git a/extensions/BMO/lib/Data.pm b/extensions/BMO/lib/Data.pm index 2e6f7e020..dc2a289a4 100644 --- a/extensions/BMO/lib/Data.pm +++ b/extensions/BMO/lib/Data.pm @@ -26,14 +26,17 @@ our @EXPORT = qw( $cf_visible_in_products # attachment. our %autodetect_attach_urls = ( github_pr => { + title => 'GitHub Pull Request', regex => qr#^https://github\.com/[^/]+/[^/]+/pull/\d+/?$#i, content_type => 'text/x-github-pull-request', }, reviewboard => { + title => 'MozReview', regex => qr#^https?://reviewboard(?:-dev)?\.(?:allizom|mozilla)\.org/r/\d+/?#i, content_type => 'text/x-review-board-request', }, google_docs => { + title => 'Google Doc', regex => qr#^https://docs\.google\.com/(?:document|spreadsheets|presentation)/d/#i, content_type => 'text/x-google-doc', }, -- cgit v1.2.3-24-g4f1b