Code coverage report for master/unquote.js

Statements: 80% (4 / 5)      Branches: 83.33% (5 / 6)      Functions: 100% (1 / 1)      Lines: 80% (4 / 5)      Ignored: none     

All files » master/ » unquote.js
1 2 3 4 5 6 71 4 4 4      
module.exports = function unquote(str, quoteChar) {
  quoteChar = quoteChar || '"';
  Eif (str[0] === quoteChar && str[str.length - 1] === quoteChar)
    return str.slice(1, str.length - 1);
  else return str;
};