mirror of
https://code.forgejo.org/actions/setup-node.git
synced 2025-05-23 22:34:45 +00:00
.
This commit is contained in:
parent
9fff29ba6c
commit
00c3b50fca
7278 changed files with 0 additions and 1778943 deletions
17
node_modules/tmpl/lib/tmpl.js
generated
vendored
17
node_modules/tmpl/lib/tmpl.js
generated
vendored
|
@ -1,17 +0,0 @@
|
|||
var INTERPOLATE = /{([\s\S]+?)}/g
|
||||
|
||||
module.exports = function(str, data) {
|
||||
var tmpl = 'var __p=[],print=function(){__p.push.apply(__p,arguments);};' +
|
||||
'with(obj||{}){__p.push(\'' +
|
||||
str.replace(/\\/g, '\\\\')
|
||||
.replace(/'/g, "\\'")
|
||||
.replace(INTERPOLATE, function(match, code) {
|
||||
return "'," + code.replace(/\\'/g, "'") + ",'"
|
||||
})
|
||||
.replace(/\r/g, '\\r')
|
||||
.replace(/\n/g, '\\n')
|
||||
.replace(/\t/g, '\\t')
|
||||
+ "');}return __p.join('');"
|
||||
var func = new Function('obj', tmpl)
|
||||
return data ? func(data) : func
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue