improve the macroOpenPattern regex
This commit is contained in:
parent
6a78a29ecb
commit
9401cea6af
1 changed files with 1 additions and 1 deletions
|
@ -6,7 +6,7 @@ import sys, re
|
|||
keyPattern = re.compile('(\w+)(,\w+)*\s*=')
|
||||
keySplit = re.compile(r'[=,\s]')
|
||||
tagPattern = re.compile(r'(\[.*?\])')
|
||||
macroOpenPattern = re.compile(r'(\{[\w\:]+)')
|
||||
macroOpenPattern = re.compile(r'(\{[^\s\}]+)')
|
||||
macroClosePattern = re.compile(r'\}')
|
||||
|
||||
def wmlfind(element, itor):
|
||||
|
|
Loading…
Add table
Reference in a new issue