Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
debomatic-webui
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
debomatic-webui-admins
debomatic-webui
Commits
476e0180
Commit
476e0180
authored
Mar 24, 2014
by
Leo Iannacone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update ejs module to 1.0.0
parent
361aa1cc
Changes
7
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
73 additions
and
49 deletions
+73
-49
debomatic-webui/node_modules/ejs/History.md
debomatic-webui/node_modules/ejs/History.md
+29
-19
debomatic-webui/node_modules/ejs/ejs.js
debomatic-webui/node_modules/ejs/ejs.js
+13
-8
debomatic-webui/node_modules/ejs/ejs.min.js
debomatic-webui/node_modules/ejs/ejs.min.js
+1
-1
debomatic-webui/node_modules/ejs/lib/ejs.js
debomatic-webui/node_modules/ejs/lib/ejs.js
+12
-7
debomatic-webui/node_modules/ejs/lib/utils.js
debomatic-webui/node_modules/ejs/lib/utils.js
+1
-1
debomatic-webui/node_modules/ejs/package.json
debomatic-webui/node_modules/ejs/package.json
+2
-2
debomatic-webui/node_modules/ejs/test/ejs.js
debomatic-webui/node_modules/ejs/test/ejs.js
+15
-11
No files found.
debomatic-webui/node_modules/ejs/History.md
View file @
476e0180
1.
0.0 / 2014-03-24
==================
*
change: escape & even if it looks like an HTML entity. Don't try to prevent double-escaping.
0.
8.6 / 2014-03-21
==================
*
fix: Escape & even if it looks like an HTML entity. Don't try to prevent double-escaping.
0.
8.5 / 2013-11-21
0.
8.5 / 2013-11-21
==================
==================
...
...
debomatic-webui/node_modules/ejs/ejs.js
View file @
476e0180
...
@@ -193,8 +193,13 @@ var parse = exports.parse = function(str, options){
...
@@ -193,8 +193,13 @@ var parse = exports.parse = function(str, options){
postfix
=
"
; buf.push('
"
;
postfix
=
"
; buf.push('
"
;
}
}
var
end
=
str
.
indexOf
(
close
,
i
)
var
end
=
str
.
indexOf
(
close
,
i
);
,
js
=
str
.
substring
(
i
,
end
)
if
(
end
<
0
){
throw
new
Error
(
'
Could not find matching close tag "
'
+
close
+
'
".
'
);
}
var
js
=
str
.
substring
(
i
,
end
)
,
start
=
i
,
start
=
i
,
include
=
null
,
include
=
null
,
n
=
0
;
,
n
=
0
;
...
@@ -633,7 +638,7 @@ require.register("utils.js", function(module, exports, require){
...
@@ -633,7 +638,7 @@ require.register("utils.js", function(module, exports, require){
exports
.
escape
=
function
(
html
){
exports
.
escape
=
function
(
html
){
return
String
(
html
)
return
String
(
html
)
.
replace
(
/&
(?!
#
?[
a-zA-Z0-9
]
+;
)
/g
,
'
&
'
)
.
replace
(
/&/g
,
'
&
'
)
.
replace
(
/</g
,
'
<
'
)
.
replace
(
/</g
,
'
<
'
)
.
replace
(
/>/g
,
'
>
'
)
.
replace
(
/>/g
,
'
>
'
)
.
replace
(
/'/g
,
'
'
'
)
.
replace
(
/'/g
,
'
'
'
)
...
...
debomatic-webui/node_modules/ejs/ejs.min.js
View file @
476e0180
This diff is collapsed.
Click to expand it.
debomatic-webui/node_modules/ejs/lib/ejs.js
View file @
476e0180
...
@@ -141,8 +141,13 @@ var parse = exports.parse = function(str, options){
...
@@ -141,8 +141,13 @@ var parse = exports.parse = function(str, options){
postfix
=
"
; buf.push('
"
;
postfix
=
"
; buf.push('
"
;
}
}
var
end
=
str
.
indexOf
(
close
,
i
)
var
end
=
str
.
indexOf
(
close
,
i
);
,
js
=
str
.
substring
(
i
,
end
)
if
(
end
<
0
){
throw
new
Error
(
'
Could not find matching close tag "
'
+
close
+
'
".
'
);
}
var
js
=
str
.
substring
(
i
,
end
)
,
start
=
i
,
start
=
i
,
include
=
null
,
include
=
null
,
n
=
0
;
,
n
=
0
;
...
...
debomatic-webui/node_modules/ejs/lib/utils.js
View file @
476e0180
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
exports
.
escape
=
function
(
html
){
exports
.
escape
=
function
(
html
){
return
String
(
html
)
return
String
(
html
)
.
replace
(
/&
(?!
#
?[
a-zA-Z0-9
]
+;
)
/g
,
'
&
'
)
.
replace
(
/&/g
,
'
&
'
)
.
replace
(
/</g
,
'
<
'
)
.
replace
(
/</g
,
'
<
'
)
.
replace
(
/>/g
,
'
>
'
)
.
replace
(
/>/g
,
'
>
'
)
.
replace
(
/'/g
,
'
'
'
)
.
replace
(
/'/g
,
'
'
'
)
...
...
debomatic-webui/node_modules/ejs/package.json
View file @
476e0180
{
{
"name"
:
"ejs"
,
"name"
:
"ejs"
,
"description"
:
"Embedded JavaScript templates"
,
"description"
:
"Embedded JavaScript templates"
,
"version"
:
"
0.8.5
"
,
"version"
:
"
1.0.0
"
,
"author"
:
{
"author"
:
{
"name"
:
"TJ Holowaychuk"
,
"name"
:
"TJ Holowaychuk"
,
"email"
:
"tj@vision-media.ca"
"email"
:
"tj@vision-media.ca"
...
@@ -28,6 +28,6 @@
...
@@ -28,6 +28,6 @@
"bugs"
:
{
"bugs"
:
{
"url"
:
"https://github.com/visionmedia/ejs/issues"
"url"
:
"https://github.com/visionmedia/ejs/issues"
},
},
"_id"
:
"ejs@
0.8.5
"
,
"_id"
:
"ejs@
1.0.0
"
,
"_from"
:
"ejs@>= 0.0.1"
"_from"
:
"ejs@>= 0.0.1"
}
}
debomatic-webui/node_modules/ejs/test/ejs.js
View file @
476e0180
...
@@ -129,22 +129,17 @@ describe('ejs.renderFile(path, options, fn)', function(){
...
@@ -129,22 +129,17 @@ describe('ejs.renderFile(path, options, fn)', function(){
})
})
describe
(
'
<%=
'
,
function
(){
describe
(
'
<%=
'
,
function
(){
it
(
'
should escape <script>
'
,
function
(){
ejs
.
render
(
'
<%= name %>
'
,
{
name
:
'
<script>
'
})
it
(
'
should escape &<script>
'
,
function
(){
.
should
.
equal
(
'
<script>
'
);
ejs
.
render
(
'
<%= name %>
'
,
{
name
:
'
<script>
'
})
.
should
.
equal
(
'
&nbsp;<script>
'
);
})
})
it
(
"
should escape '
"
,
function
(){
it
(
"
should escape '
"
,
function
(){
ejs
.
render
(
'
<%= name %>
'
,
{
name
:
"
The Jones's
"
})
ejs
.
render
(
'
<%= name %>
'
,
{
name
:
"
The Jones's
"
})
.
should
.
equal
(
'
The Jones's
'
);
.
should
.
equal
(
'
The Jones's
'
);
})
})
it
(
"
shouldn't escape &
"
,
function
(){
ejs
.
render
(
'
<%= name %>
'
,
{
name
:
"
Us & Them
"
})
.
should
.
equal
(
'
Us & Them
'
);
})
it
(
"
shouldn't escape ]
"
,
function
(){
ejs
.
render
(
'
<%= name %>
'
,
{
name
:
"
The Jones's
"
})
.
should
.
equal
(
'
The Jones's
'
);
})
it
(
"
should escape &foo_bar;
"
,
function
(){
it
(
"
should escape &foo_bar;
"
,
function
(){
ejs
.
render
(
'
<%= name %>
'
,
{
name
:
"
&foo_bar;
"
})
ejs
.
render
(
'
<%= name %>
'
,
{
name
:
"
&foo_bar;
"
})
.
should
.
equal
(
'
&foo_bar;
'
);
.
should
.
equal
(
'
&foo_bar;
'
);
...
@@ -156,6 +151,15 @@ describe('<%-', function(){
...
@@ -156,6 +151,15 @@ describe('<%-', function(){
ejs
.
render
(
'
<%- name %>
'
,
{
name
:
'
<script>
'
})
ejs
.
render
(
'
<%- name %>
'
,
{
name
:
'
<script>
'
})
.
should
.
equal
(
'
<script>
'
);
.
should
.
equal
(
'
<script>
'
);
})
})
it
(
'
should terminate gracefully if no close tag is found
'
,
function
(){
try
{
ejs
.
compile
(
'
<h1>oops</h1><%- name ->
'
)
throw
new
Error
(
'
Expected parse failure
'
);
}
catch
(
err
)
{
err
.
message
.
should
.
equal
(
'
Could not find matching close tag "%>".
'
);
}
})
})
})
describe
(
'
%>
'
,
function
(){
describe
(
'
%>
'
,
function
(){
...
...
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