From 9c10822f7d2084a155ff6011802247ffa40c8980 Mon Sep 17 00:00:00 2001 From: Andras Timar Date: Wed, 6 Jan 2021 13:50:39 +0100 Subject: _UNO() takes precedence, it will become the actual label Signed-off-by: Andras Timar Change-Id: I0e25ebc289179f80eb4231c218feb9af554ec334 --- scripts/unocommands.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'scripts') diff --git a/scripts/unocommands.py b/scripts/unocommands.py index fa44e83497..4400c4586e 100755 --- a/scripts/unocommands.py +++ b/scripts/unocommands.py @@ -60,11 +60,11 @@ def commandsFromLine(line): # Extract uno commands name from lines like " {uno: '.uno:Command3'," def commandFromMenuLine(line): - m = re.search(r"\buno: *'\.uno:([^']*)'", line) + m = re.search(r"\b_UNO\('.uno:([^']*)'", line) if m: return [m.group(1)] - m = re.search(r"\b_UNO\('.uno:([^']*)'", line) + m = re.search(r"\buno: *'\.uno:([^']*)'", line) if m: return [m.group(1)] -- cgit