Skip to content

Commit 8f99c4d

Browse files
committed
Fix file path bug in interactive compare-member-csv tool
1 parent 0671c6f commit 8f99c4d

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

prompts/compare-member-csv.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@ const options = [
1313
name: 'oldFile',
1414
message: 'Path to the old/existing members CSV file (drag file into this window):',
1515
filter: function (val) {
16-
return val.trim();
16+
// Remove backslash escapes that come from shell path escaping
17+
// Replace "\ " with just " "
18+
return val.trim().replace(/\\ /g, ' ');
1719
},
1820
validate: function (val) {
1921
if (val.length === 0) {
@@ -27,7 +29,9 @@ const options = [
2729
name: 'newFile',
2830
message: 'Path to the new members CSV file (drag file into this window):',
2931
filter: function (val) {
30-
return val.trim();
32+
// Remove backslash escapes that come from shell path escaping
33+
// Replace "\ " with just " "
34+
return val.trim().replace(/\\ /g, ' ');
3135
},
3236
validate: function (val) {
3337
if (val.length === 0) {

0 commit comments

Comments
 (0)