File tree 1 file changed +4
-5
lines changed
1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -11,13 +11,12 @@ sub process {
11
11
12
12
return if !$c -> checkToken;
13
13
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 ]+$ / ;
17
16
18
17
my $_p = $c -> model-> issue-> process_p(qw( ooceapps ooceapps) , $p , 1);
19
18
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 '" ))
21
20
if !blessed $_p;
22
21
23
22
$c -> render_later;
@@ -36,7 +35,7 @@ __END__
36
35
37
36
=head1 COPYRIGHT
38
37
39
- Copyright 2022 OmniOS Community Edition (OmniOSce) Association.
38
+ Copyright 2024 OmniOS Community Edition (OmniOSce) Association.
40
39
41
40
=head1 LICENSE
42
41
You can’t perform that action at this time.
0 commit comments