jayli-server
Advanced tools
Comparing version 0.0.20 to 0.0.21
@@ -343,6 +343,5 @@ /** | ||
var tmsPrefix = 'trip.taobao.com/go/'; | ||
var tms_include = '<!--TMS:([^,]+),(utf-8|utf8|gbk|gb2312):TMS-->'; | ||
cont = cont.replace(new RegExp(tms_include, 'ig'),function(){ | ||
var args = arguments; | ||
return "<!--#include " + 'virtual="http://' + path.join(tmsPrefix, args[1]) + '" -->'; | ||
var tms_include = '<!--TMS:([^,]+),(utf-8|utf8|gbk|gb2312),([0-9]*):TMS-->'; | ||
cont = cont.replace(new RegExp(tms_include, 'ig'),function(matchPath, tmsPath, encoding, tmsdir){ | ||
return "<!--#include " + 'virtual="http://' + path.join(tmsPrefix, tmsPath) + '" -->'; | ||
}); | ||
@@ -349,0 +348,0 @@ |
@@ -7,3 +7,3 @@ { | ||
}, | ||
"version": "0.0.20", | ||
"version": "0.0.21", | ||
"description": "A node.js module for delivering static files,width ssi,mock and php", | ||
@@ -10,0 +10,0 @@ "keywords": [ |
240630
2759