summaryrefslogtreecommitdiffstats
path: root/Bugzilla/BugUrl
diff options
context:
space:
mode:
authorDylan Hardison <dylan@mozilla.com>2016-01-05 23:55:24 +0100
committerDylan Hardison <dylan@mozilla.com>2016-01-05 23:55:24 +0100
commitead96aee04bbc8a470e572948190d8781ebf5290 (patch)
treedeaa9205a86197c632f341498d0db260e3caf2d4 /Bugzilla/BugUrl
parentefe494e10b6c38836854f375a2382006a40a2b1f (diff)
downloadbugzilla-ead96aee04bbc8a470e572948190d8781ebf5290.tar.gz
bugzilla-ead96aee04bbc8a470e572948190d8781ebf5290.tar.xz
Bug 1224001 - Add push connector for Aha.io
Diffstat (limited to 'Bugzilla/BugUrl')
-rw-r--r--Bugzilla/BugUrl/Aha.pm10
1 files changed, 9 insertions, 1 deletions
diff --git a/Bugzilla/BugUrl/Aha.pm b/Bugzilla/BugUrl/Aha.pm
index a37af3b67..572789e66 100644
--- a/Bugzilla/BugUrl/Aha.pm
+++ b/Bugzilla/BugUrl/Aha.pm
@@ -16,7 +16,15 @@ use base qw(Bugzilla::BugUrl);
sub should_handle {
my ($class, $uri) = @_;
- return $uri =~ m!^https?://[^.]+\.aha\.io/features/(\w+)-(\d+)!;
+ return $uri =~ m!^https?://[^.]+\.aha\.io/features/(\w+-\d+)!;
+}
+
+sub get_feature_id {
+ my ($self) = @_;
+
+ if ($self->{value} =~ m!^https?://[^.]+\.aha\.io/features/(\w+-\d+)!) {
+ return $1;
+ }
}
sub _check_value {