_UNO() takes precedence, it will become the actual label

Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I0e25ebc289179f80eb4231c218feb9af554ec334
pull/1170/head
Andras Timar 2021-01-06 13:50:39 +01:00
parent 23fe1b3bc5
commit 9c10822f7d
1 changed files with 2 additions and 2 deletions

View File

@ -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)]