From dac42e9e28be1d9dade5acedee82271fba794495 Mon Sep 17 00:00:00 2001 From: Tobias Hunger Date: Tue, 17 Sep 2019 11:18:14 +0200 Subject: [PATCH] Wizards: Fix JSON of qtquick2-extension wizard "\." is an invalid backslash escape sequence in JSON. QJSON accepts this though and silently "fixes" the string by removing the stray '\' character. This is QTBUG-78443 now, as a conforming JSON parser should reject invalid data. The string as "fixed" by QJSON is also not what we wanted in the first place. Change-Id: I070999957c6a0c3d0f1753d907ac460e9e341fc1 Reviewed-by: Alessandro Portale --- .../templates/wizards/projects/qtquick2-extension/wizard.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/qtcreator/templates/wizards/projects/qtquick2-extension/wizard.json b/share/qtcreator/templates/wizards/projects/qtquick2-extension/wizard.json index f548d18c9bd..b0f9e33ae38 100644 --- a/share/qtcreator/templates/wizards/projects/qtquick2-extension/wizard.json +++ b/share/qtcreator/templates/wizards/projects/qtquick2-extension/wizard.json @@ -55,7 +55,7 @@ "type": "LineEdit", "data": { - "validator": "^[A-Za-z0-9]+([A-Za-z0-9-]*[A-Za-z0-9]+)?(\.[A-Za-z0-9]+([-A-Za-z0-9]*[A-Za-z0-9]+)?)*$", + "validator": "^[A-Za-z0-9]+([A-Za-z0-9-]*[A-Za-z0-9]+)?(\\.[A-Za-z0-9]+([-A-Za-z0-9]*[A-Za-z0-9]+)?)*$", "trText": "com.mycompany.qmlcomponents" } }