Skip to content

Commit

Permalink
Fixes #8159
Browse files Browse the repository at this point in the history
  • Loading branch information
fdurand committed Jun 21, 2024
1 parent 4642eb1 commit 51a89e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion html/pfappserver/lib/pfappserver/Form/Config/Switch.pm
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ has_field 'id' =>
tags => {
option_pattern => sub {
return {
regex => qq{(([0-9a-fA-f]{2}([:\\.-][0-9a-fA-f]{2}){5})|([0-9a-fA-F]{4}([\\.-][0-9a-fA-F]{4}){2})|([0-9a-fA-F]{12})|(\\d{1,3}(\\.\\d{1,3}){3})|((?=^.{4,253}\$)(^((?!-)[a-zA-Z0-9-]{1,63}(?<!-)\\.)+[a-zA-Z]{2,63}\$))|default)},
regex => qq{(([0-9a-fA-f]{2}([:\\.-][0-9a-fA-f]{2}){5})|([0-9a-fA-F]{4}([\\.-][0-9a-fA-F]{4}){2})|([0-9a-fA-F]{12})|((\\d{1,3}(\\.\\d{1,3}){3})(/\\d{1,2})?)|((?=^.{4,253}\$)(^((?!-)[a-zA-Z0-9-]{1,63}(?<!-)\\.)+[a-zA-Z]{2,63}\$))|default)},
message => "The id must be a MAC, or IP address, or a fqdn.",
};
},
Expand Down

0 comments on commit 51a89e6

Please sign in to comment.