Skip to content

Commit

Permalink
Issue #2749: no need to escape '-' in character class
Browse files Browse the repository at this point in the history
  • Loading branch information
bschmalhofer committed Dec 6, 2023
1 parent 3528496 commit bf7e37a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Kernel/System/DynamicField.pm
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ sub DynamicFieldAdd {
}

# check needed structure for some fields
if ( $Param{Name} !~ m{ \A [a-zA-Z\d\-]+ \z }xms ) {
if ( $Param{Name} !~ m{ \A [a-zA-Z\d-]+ \z }xms ) {
$Kernel::OM->Get('Kernel::System::Log')->Log(
Priority => 'error',
Message => "Not valid letters on Name:$Param{Name}!"
Expand Down

0 comments on commit bf7e37a

Please sign in to comment.