mirror of
https://github.com/openSUSE/osc.git
synced 2025-01-14 01:26:23 +01:00
Use non consuming expressions to allow escape more strings in one row.
This commit is contained in:
parent
eda5e9c38c
commit
c40738b2ea
12
osc/cmdln.py
12
osc/cmdln.py
@ -118,12 +118,12 @@ def alias(*aliases):
|
|||||||
return decorate
|
return decorate
|
||||||
|
|
||||||
MAN_REPLACES = [
|
MAN_REPLACES = [
|
||||||
(re.compile(r'(^|[ \t\[\'])--([^/ \t-]*)-([^/ \t-]*)-([^/ \t-]*)($|[ \t=\]\'])'), r'\1\-\-\2\-\3\-\4\5'),
|
(re.compile(r'(^|[ \t\[\'])--([^/ \t/,-]*)-([^/ \t/,-]*)-([^/ \t/,-]*)(?=$|[ \t=\]\'/,])'), r'\1\-\-\2\-\3\-\4'),
|
||||||
(re.compile(r'(^|[ \t\[\'])-([^/ \t-]*)-([^/ \t-]*)-([^/ \t-]*)($|[ \t=\]\'])'), r'\1\-\2\-\3\-\4\5'),
|
(re.compile(r'(^|[ \t\[\'])-([^/ \t/,-]*)-([^/ \t/,-]*)-([^/ \t/,-]*)(?=$|[ \t=\]\'/,])'), r'\1\-\2\-\3\-\4'),
|
||||||
(re.compile(r'(^|[ \t\[\'])--([^/ \t-]*)-([^/ \t-]*)($|[ \t=\]\'])'), r'\1\-\-\2\-\3\4'),
|
(re.compile(r'(^|[ \t\[\'])--([^/ \t/,-]*)-([^/ \t/,-]*)(?=$|[ \t=\]\'/,])'), r'\1\-\-\2\-\3'),
|
||||||
(re.compile(r'(^|[ \t\[\'])-([^/ \t-]*)-([^/ \t-]*)($|[ \t=\]\'])'), r'\1\-\2\-\3\4'),
|
(re.compile(r'(^|[ \t\[\'])-([^/ \t/,-]*)-([^/ \t/,-]*)(?=$|[ \t=\]\'/,])'), r'\1\-\2\-\3'),
|
||||||
(re.compile(r'(^|[ \t\[\'])--([^/ \t-]*)($|[ \t=\]\'])'), r'\1\-\-\2\3'),
|
(re.compile(r'(^|[ \t\[\'])--([^/ \t/,-]*)(?=$|[ \t=\]\'/,])'), r'\1\-\-\2'),
|
||||||
(re.compile(r'(^|[ \t\[\'])-([^/ \t-]*)($|[ \t=\]\'])'), r'\1\-\2\3'),
|
(re.compile(r'(^|[ \t\[\'])-([^/ \t/,-]*)(?=$|[ \t=\]\'/,])'), r'\1\-\2'),
|
||||||
(re.compile(r"^'"), r" '"),
|
(re.compile(r"^'"), r" '"),
|
||||||
]
|
]
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user