summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorAndras Timar <andras.timar@collabora.com>2021-01-06 13:50:39 +0100
committerAndras Timar <andras.timar@collabora.com>2021-01-06 13:54:01 +0100
commit9c10822f7d2084a155ff6011802247ffa40c8980 (patch)
treec1e61a0d4e007fbee24369904714e2899fc0acc3 /scripts
parentadd CAP_CHOWN to systemd service files (diff)
downloadonline-9c10822f7d2084a155ff6011802247ffa40c8980.tar.gz
online-9c10822f7d2084a155ff6011802247ffa40c8980.zip
_UNO() takes precedence, it will become the actual label
Signed-off-by: Andras Timar <andras.timar@collabora.com> Change-Id: I0e25ebc289179f80eb4231c218feb9af554ec334
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/unocommands.py4
1 files changed, 2 insertions, 2 deletions
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)]