Comparing version 0.0.3 to 0.0.4
@@ -24,3 +24,3 @@ module.exports = { | ||
trim: function (str) { | ||
if (String.prototype.forEach) { | ||
if (String.prototype.trim) { | ||
return str.trim(); | ||
@@ -31,4 +31,4 @@ } | ||
trimRight: function (str) { | ||
if (String.prototype.forEach) { | ||
return str.trim(); | ||
if (String.prototype.trimRight) { | ||
return str.trimRight(); | ||
} | ||
@@ -35,0 +35,0 @@ return str.replace(/(\s*$)/g, ''); |
{ | ||
"name": "cssfilter", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"description": "Sanitize untrusted CSS with a configuration specified by a Whitelist. 根据白名单过滤CSS", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
35505