diff options
author | Leander Beernaert <leander.beernaert@qt.io> | 2019-08-06 15:15:38 +0200 |
---|---|---|
committer | Leander Beernaert <leander.beernaert@qt.io> | 2019-08-06 13:27:20 +0000 |
commit | 9ca1d795391a07ae34b289e0ee4239023b8d58d6 (patch) | |
tree | da10c133089a9836c34e0b43a13836031d3b1725 /util/cmake/pro2cmake.py | |
parent | d9432527414f66c5eaa8d44697ad307f9b37bd66 (diff) |
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 <alexandru.croitor@qt.io>
Diffstat (limited to 'util/cmake/pro2cmake.py')
-rwxr-xr-x | util/cmake/pro2cmake.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util/cmake/pro2cmake.py b/util/cmake/pro2cmake.py index 8a002244ef..71887bb908 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') |