projects
/
yaffs-website
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
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
+++ b/
node_modules/underscore.string/unquote.js
@@ -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;
+};