Skip to content

Commit bf51b12

Browse files
authored
Merge pull request #215 from hadfl/issue
issue: default to illumos even if multiple bug IDs are provided
2 parents 68974ce + c3d1a48 commit bf51b12

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

lib/OOCEapps/Controller/Issue.pm

+4-5
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,12 @@ sub process {
1111

1212
return if !$c->checkToken;
1313

14-
#default to illumos if just a number is provided
15-
$p = "illumos $p" if $p =~ /^\d+$/;
16-
14+
# default to illumos if just numbers and whitespaces are provided
15+
$p = "illumos $p" if $p =~ /^[\d\s]+$/;
1716

1817
my $_p = $c->model->issue->process_p(qw(ooceapps ooceapps), $p, 1);
1918

20-
return $c->render(json => OOCEapps::Mattermost->text("no issue found using search string '$p'"))
19+
return $c->render(json => OOCEapps::Mattermost->text("no issues found using search string '$p'"))
2120
if !blessed $_p;
2221

2322
$c->render_later;
@@ -36,7 +35,7 @@ __END__
3635
3736
=head1 COPYRIGHT
3837
39-
Copyright 2022 OmniOS Community Edition (OmniOSce) Association.
38+
Copyright 2024 OmniOS Community Edition (OmniOSce) Association.
4039
4140
=head1 LICENSE
4241

0 commit comments

Comments
 (0)