From ead96aee04bbc8a470e572948190d8781ebf5290 Mon Sep 17 00:00:00 2001 From: Dylan Hardison Date: Tue, 5 Jan 2016 17:55:24 -0500 Subject: Bug 1224001 - Add push connector for Aha.io --- Bugzilla/BugUrl/Aha.pm | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'Bugzilla') 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 { -- cgit v1.2.3-24-g4f1b