diff options
Diffstat (limited to 'Bugzilla')
-rw-r--r-- | Bugzilla/BugUrl/Aha.pm | 10 |
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 { |