mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-30 22:24:20 +01:00
Fixed odd error in findAliasCommand.
This commit is contained in:
parent
1cd7ccbfa4
commit
d0d95cd017
@ -92,7 +92,7 @@ class RecursiveAlias(Exception):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
def findAliasCommand(s, alias):
|
def findAliasCommand(s, alias):
|
||||||
r = re.compile(r'(^|\[)\s*%s' % s)
|
r = re.compile(r'(^|\[)\s*%s' % re.escape(s))
|
||||||
return bool(r.search(alias))
|
return bool(r.search(alias))
|
||||||
|
|
||||||
dollarRe = re.compile(r'\$(\d+)')
|
dollarRe = re.compile(r'\$(\d+)')
|
||||||
|
Loading…
Reference in New Issue
Block a user