Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
d28e0a27
Commit
d28e0a27
authored
Mar 23, 2016
by
Peter Fogg
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #11895 from edx/peter-fogg/linter-fixes
Minor fixes to the safe template linter.
parents
8459b5be
6661063b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
scripts/safe_template_linter.py
+2
-2
No files found.
scripts/safe_template_linter.py
View file @
d28e0a27
...
...
@@ -517,7 +517,7 @@ class MakoTemplateLinter(object):
<script.*?>| # script tag start
</script>| # script tag end
<
%
static:require_module.*?>| # require js script tag start
</
%
static:require_module> # require js script tag end"""
,
re
.
VERBOSE
+
re
.
IGNORECASE
)
</
%
static:require_module> # require js script tag end"""
,
re
.
VERBOSE
|
re
.
IGNORECASE
)
media_type_re
=
re
.
compile
(
r"""type=['"].*?['"]"""
,
re
.
IGNORECASE
)
contexts
=
[{
'index'
:
0
,
'type'
:
'html'
}]
...
...
@@ -773,7 +773,7 @@ class UnderscoreTemplateLinter(object):
end_index: The index of the end of the expression.
expression: The text of the expression.
"""
unescaped_expression_regex
=
re
.
compile
(
"<
%
=.*?
%
>"
)
unescaped_expression_regex
=
re
.
compile
(
"<
%
=.*?
%
>"
,
re
.
MULTILINE
)
expressions
=
[]
for
match
in
unescaped_expression_regex
.
finditer
(
underscore_template
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment