Version 1
[yaffs-website] / node_modules / underscore.string / unquote.js
diff --git a/node_modules/underscore.string/unquote.js b/node_modules/underscore.string/unquote.js
new file mode 100644 (file)
index 0000000..fefba49
--- /dev/null
@@ -0,0 +1,6 @@
+module.exports = function unquote(str, quoteChar) {
+  quoteChar = quoteChar || '"';
+  if (str[0] === quoteChar && str[str.length - 1] === quoteChar)
+    return str.slice(1, str.length - 1);
+  else return str;
+};