aboutsummaryrefslogtreecommitdiffstats
path: root/share/qtcreator/templates
diff options
context:
space:
mode:
authorChristian Gagneraud <chgans@gmail.com>2019-05-10 23:17:52 +1200
committerChristian Gagneraud <chgans@gmail.com>2019-05-13 07:40:41 +0000
commit3b596eef4029a58eff8189851e6200437ee42700 (patch)
treef4993ff8ebe4ac5fc064843f0ff61e65b0304a05 /share/qtcreator/templates
parent3e040c57592f2b66644e8a602043af1737134b2d (diff)
JSON wizard: Fix invalid json files
share/qtcreator/templates/wizards/projects/vcs/git/wizard.json: Invalid \escape: line 16 column 59 (char 574) Loading share/qtcreator/templates/wizards/files/java/wizard.json: Invalid \escape: line 12 column 137 (char 466) Change-Id: I2aeed7d5e167b92a1d118678d112f4a568c59997 Fixes: QTCREATORBUG-22432 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Diffstat (limited to 'share/qtcreator/templates')
-rw-r--r--share/qtcreator/templates/wizards/files/java/wizard.json2
-rw-r--r--share/qtcreator/templates/wizards/projects/vcs/git/wizard.json2
2 files changed, 2 insertions, 2 deletions
diff --git a/share/qtcreator/templates/wizards/files/java/wizard.json b/share/qtcreator/templates/wizards/files/java/wizard.json
index d465c9ead5..6341319c6b 100644
--- a/share/qtcreator/templates/wizards/files/java/wizard.json
+++ b/share/qtcreator/templates/wizards/files/java/wizard.json
@@ -9,7 +9,7 @@
"iconText": "java",
"enabled": "%{JS: value('Plugins').indexOf('Android') >= 0}",
- "options": [ { "key": "ClassName", "value": "%{JS: value('FileName').charAt(0).toUpperCase() + value('FileName').substr(1).replace(/\.java$/,'')}" } ],
+ "options": [ { "key": "ClassName", "value": "%{JS: value('FileName').charAt(0).toUpperCase() + value('FileName').substr(1).replace(/\\.java$/,'')}" } ],
"pages" :
[
diff --git a/share/qtcreator/templates/wizards/projects/vcs/git/wizard.json b/share/qtcreator/templates/wizards/projects/vcs/git/wizard.json
index 7bebb5c83d..c97698612b 100644
--- a/share/qtcreator/templates/wizards/projects/vcs/git/wizard.json
+++ b/share/qtcreator/templates/wizards/projects/vcs/git/wizard.json
@@ -13,7 +13,7 @@
[
{ "key": "vcsId", "value": "G.Git" },
{ "key": "vcsName", "value": "%{JS: Vcs.displayName('%{vcsId}')}" },
- { "key": "SR", "value": "%{JS: '%{Repo}'.replace(/\.git$/, '') }"},
+ { "key": "SR", "value": "%{JS: '%{Repo}'.replace(/\\.git$/, '') }"},
{ "key": "defaultDir", "value": "%{JS: '%{SR}'.substr('%{SR}'.lastIndexOf('/') + 1).replace(/\\./, '-') }"},
{ "key": "branchArg", "value": "%{JS: '%{Branch}' ? '--branch' : '' }" },
{ "key": "TargetPath", "value": "%{Path}/%{Dir}" }