Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Test
/
templar-min-old
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
ea43f423
authored
2017-02-01 14:34:29 -0600
by
Marcos Cano
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix uppercase regex
1 parent
5c6160ad
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
src/examples/template.j2
src/templar.min.py
src/examples/template.j2
View file @
ea43f42
...
...
@@ -2,4 +2,4 @@ this a template file
var = [[{variable}]]
otra_variable= [[{var}]]
\ No newline at end of file
otra_variable= [[{VAR}]]
\ No newline at end of file
...
...
src/templar.min.py
View file @
ea43f42
...
...
@@ -15,8 +15,8 @@ class MyTemplate(string.Template):
pattern
=
r'''
\[\[\{(?:
(?P<escaped>\[\[\{)|
(?P<named>[_
a-z][_a-z
0-9]*)\}\]\]|
(?P<braced>[_
a-z][_a-z
0-9]*)\}\]\]|
(?P<named>[_
A-Z][_A-Z
0-9]*)\}\]\]|
(?P<braced>[_
A-Z][_A-Z
0-9]*)\}\]\]|
(?P<invalid>)
)
'''
...
...
Please
register
or
sign in
to post a comment