_UNO() takes precedence, it will become the actual label
Signed-off-by: Andras Timar <andras.timar@collabora.com> Change-Id: I0e25ebc289179f80eb4231c218feb9af554ec334pull/1170/head
parent
23fe1b3bc5
commit
9c10822f7d
|
@ -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)]
|
||||
|
||||
|
|
Loading…
Reference in New Issue