From b25b92a81bce184b406e3ebdc7feef3072a25e32 Mon Sep 17 00:00:00 2001 From: fieldOfView Date: Thu, 29 Sep 2016 14:46:31 +0200 Subject: [PATCH] Don't allow spaces, commas and other illegal chars in the address CURA-2384 --- DiscoverUM3Action.qml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/DiscoverUM3Action.qml b/DiscoverUM3Action.qml index 4daeaa1c37..5bac7d89ba 100644 --- a/DiscoverUM3Action.qml +++ b/DiscoverUM3Action.qml @@ -302,6 +302,10 @@ Cura.MachineAction id: addressField width: parent.width maximumLength: 40 + validator: RegExpValidator + { + regExp: /[a-zA-Z0-9\.\-\_]*/ + } } }