Skip to content

Commit 7f266e0

Browse files
committed
Make removeQuotes only remove surrounding quotes
1 parent a8bc9fe commit 7f266e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/googledrive.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ function googleDrivePath (path) {
103103
* @private
104104
*/
105105
function removeQuotes (string) {
106-
return string.substring(1, string.length-1);
106+
return string.replace(/^["'](.*)["']$/, "$1");
107107
}
108108

109109
/**

0 commit comments

Comments
 (0)