mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-02 20:52:20 -07:00
Don't allow spaces, commas and other illegal chars in the address
CURA-2384
This commit is contained in:
parent
ea9ba87fa4
commit
b25b92a81b
1 changed files with 4 additions and 0 deletions
|
|
@ -302,6 +302,10 @@ Cura.MachineAction
|
||||||
id: addressField
|
id: addressField
|
||||||
width: parent.width
|
width: parent.width
|
||||||
maximumLength: 40
|
maximumLength: 40
|
||||||
|
validator: RegExpValidator
|
||||||
|
{
|
||||||
|
regExp: /[a-zA-Z0-9\.\-\_]*/
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue