forked from qt-creator/qt-creator
QmlDesigner: do not allow "-" in project names
This would create a not working import statement.
Task-number: QDS-12272
Change-Id: I0b68d0e3967d69adc5ed361985e43a77f4b58d4e
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
(cherry picked from commit 9d61101805
)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
"trShortTitle": "Location",
|
||||
"typeId": "Project",
|
||||
"data": {
|
||||
"projectNameValidator": "^(?!(import))(?!(QtQml))(?!(QtQuick))(?:[A-Z][a-zA-Z0-9-_]*)$",
|
||||
"trProjectNameValidatorUserMessage": "Project name must start with a capital letter. It cannot start with QtQml or QtQuick. Use only letters and digits separated by `_` or `-`"
|
||||
"projectNameValidator": "^(?!(import))(?!(QtQml))(?!(QtQuick))(?:[A-Z][a-zA-Z0-9_]*)$",
|
||||
"trProjectNameValidatorUserMessage": "Project name must start with a capital letter. It cannot start with QtQml or QtQuick. Use only letters and digits separated by `_`."
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user