We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 34a7160 commit eb5faedCopy full SHA for eb5faed
oneCommand.py
@@ -38,7 +38,7 @@ class CmdVariable:
38
def __init__(self, name, replacewith):
39
self.name = name
40
self.replacewith = replacewith
41
- self.regex = re.compile("\\$"+name.lower(), re.IGNORECASE)
+ self.regex = re.compile("\\$"+name.lower()+"\\b", re.IGNORECASE)
42
def sub(self, string):
43
return self.regex.sub(self.replacewith, string)
44
0 commit comments