From 38ca5049f18bbf1430b1c90666db9b2c10d39618 Mon Sep 17 00:00:00 2001 From: grdddj Date: Mon, 29 May 2023 14:40:00 +0200 Subject: [PATCH] WIP - fix Rust API check --- core/tools/rust_api_check.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/tools/rust_api_check.py b/core/tools/rust_api_check.py index a662d9ee2..072a9baa8 100755 --- a/core/tools/rust_api_check.py +++ b/core/tools/rust_api_check.py @@ -95,7 +95,7 @@ def _get_all_qstr_code_types(file: Path) -> dict[str, dict[str, str]]: # There could be a default value default = None if "unwrap_or_else" in one_line: - default_match = re.search(r"unwrap_or_else\(\|_\|\s+(.*?)\)", one_line) + default_match = re.search(r"unwrap_or_else\(\|_?\|\s+(.*?)\)", one_line) if default_match: default = default_match.group(1) else: