Skip to content

Commit eb5faed

Browse files
committed
cap string
prevents errors in dupe var names
1 parent 34a7160 commit eb5faed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

oneCommand.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class CmdVariable:
3838
def __init__(self, name, replacewith):
3939
self.name = name
4040
self.replacewith = replacewith
41-
self.regex = re.compile("\\$"+name.lower(), re.IGNORECASE)
41+
self.regex = re.compile("\\$"+name.lower()+"\\b", re.IGNORECASE)
4242
def sub(self, string):
4343
return self.regex.sub(self.replacewith, string)
4444

0 commit comments

Comments
 (0)