all files / modules/utils/ stripQuotes.js

80% Statements 4/5
50% Branches 1/2
100% Functions 1/1
80% Lines 4/5
1 2 3 4 5 6 7 8 9 10            
function stripQuotes(string) {
    Eif (string.substring(0, 1) === "\"") {
        return string.replace(/^"|"$/g, "");
    }
 
    return string;
}
 
module.exports = stripQuotes;