Fix regex
This commit is contained in:
parent
b8db724ed2
commit
b8e0559826
|
@ -1,7 +1,7 @@
|
|||
import plugin, utils, tracery, titlecase, re
|
||||
from tracery.modifiers import base_english
|
||||
|
||||
NAME = re.compile(r'\$([^\s]+)')
|
||||
NAME = re.compile(r'\$(\d+|[a-z]+)')
|
||||
SUB = r"#\1#"
|
||||
replace_name = lambda x: NAME.sub(SUB,x)
|
||||
|
||||
|
|
Loading…
Reference in New Issue