MCPcopy Create free account
hub / github.com/unconed/TermKit / unquote

Function unquote

Node/shell/meta.js:245–250  ·  view source on GitHub ↗
(string)

Source from the content-addressed store, hash-verified

243 */
244 parseValue: function (string, params) {
245 function unquote(string) {
246 return string.replace(/"([^"\\]|\\.)+"/g, function (string) {
247 string = string.replace(/\\(.)/g, '$1');
248 return string.substring(1, string.length - 1);
249 });
250 }
251
252 function unliteral(string) {
253 return string.replace(/\[([^\[\]\\]|\\.)+\]/g, function (string) {

Callers 1

meta.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected