mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-29 21:54:22 +01:00
Fixed odd error in findAliasCommand.
This commit is contained in:
parent
1cd7ccbfa4
commit
d0d95cd017
@ -92,7 +92,7 @@ class RecursiveAlias(Exception):
|
||||
pass
|
||||
|
||||
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))
|
||||
|
||||
dollarRe = re.compile(r'\$(\d+)')
|
||||
|
Loading…
Reference in New Issue
Block a user