Allow floating point values higher than 9.9999

It would allow only one digit before the radix.

Contributes to issue CURA-3157.
This commit is contained in:
Ghostkeeper 2016-12-19 11:55:58 +01:00 committed by Simon Edwards
parent 8fadc41ac8
commit 5caa1b9b58

View file

@ -100,7 +100,7 @@ SettingItem
maximumLength: 10;
validator: RegExpValidator { regExp: (definition.type == "int") ? /^-?[0-9]{0,10}$/ : /^-?[0-9]?[.,]?[0-9]{0,10}$/ } // definition.type property from parent loader used to disallow fractional number entry
validator: RegExpValidator { regExp: (definition.type == "int") ? /^-?[0-9]{0,10}$/ : /^-?[0-9]{0,9}[.,]?[0-9]{0,10}$/ } // definition.type property from parent loader used to disallow fractional number entry
Binding
{