Francois Gouget : testbot: Simplify the basic property validation.
Module: tools Branch: master Commit: 700e0863ea58d4f2c32c4fe15a4cd084cfe20c6b URL: https://source.winehq.org/git/tools.git/?a=commit;h=700e0863ea58d4f2c32c4fe1... Author: Francois Gouget <fgouget(a)codeweavers.com> Date: Fri Mar 4 18:36:54 2022 +0100 testbot: Simplify the basic property validation. Signed-off-by: Francois Gouget <fgouget(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- testbot/lib/ObjectModel/BasicPropertyDescriptor.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testbot/lib/ObjectModel/BasicPropertyDescriptor.pm b/testbot/lib/ObjectModel/BasicPropertyDescriptor.pm index 766a342..b283859 100644 --- a/testbot/lib/ObjectModel/BasicPropertyDescriptor.pm +++ b/testbot/lib/ObjectModel/BasicPropertyDescriptor.pm @@ -92,7 +92,7 @@ sub ValidateValue($$$) return $self->GetDisplayName() . ": Too long"; } - if ($self->GetType() eq "N" && ! ($Value =~ /^\s*\d+\s*$/)) + if ($self->GetType() eq "N" && $Value !~ /^\s*\d+\s*$/) { return $self->GetDisplayName() . ": Invalid number"; }
participants (1)
-
Alexandre Julliard