From 9ca1d795391a07ae34b289e0ee4239023b8d58d6 Mon Sep 17 00:00:00 2001 From: Leander Beernaert Date: Tue, 6 Aug 2019 15:15:38 +0200 Subject: [PATCH] Fix regular expression for add_qml_module Values such as Foo.2 would no longer be converted into Foo due to an error in the regular expression. Change-Id: I6a11d02662782094f5b264f86a930d9aaf002c77 Reviewed-by: Alexandru Croitor --- util/cmake/pro2cmake.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/cmake/pro2cmake.py b/util/cmake/pro2cmake.py index 8a002244ef0..71887bb908b 100755 --- a/util/cmake/pro2cmake.py +++ b/util/cmake/pro2cmake.py @@ -1974,7 +1974,7 @@ def write_qml_plugin(cm_fh: typing.IO[str], if import_name: extra_lines.append('URI "{}"'.format(import_name)) else: - uri = re.sub('\\.\\d+\\.', '.',uri) + uri = re.sub('\\.\\d+', '', uri) extra_lines.append('URI "{}"'.format(uri)) import_version = scope.get_string('IMPORT_VERSION')