mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
Fix #2591 (Fix invalid escape sequence error)
This commit is contained in:
parent
b388a91180
commit
45727ceaa7
@ -32,7 +32,7 @@ from polyglot.builtins import unicode_type
|
||||
|
||||
|
||||
class Templite:
|
||||
auto_emit = re.compile(r'''(^['"])|(^[a-zA-Z0-9_\[\]'"]+$)''')
|
||||
auto_emit = re.compile(r'''(^['"])|(^[a-zA-Z0-9_[\]'"]+$)''')
|
||||
|
||||
def __init__(self, template, start='${', end='}$'):
|
||||
if len(start) != 2 or len(end) != 2:
|
||||
|
Loading…
x
Reference in New Issue
Block a user