Skip to content

Commit 5d44ccf

Browse files
committed
Trim whitespace/newlines when parsing addons
1 parent abe207c commit 5d44ccf

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

  • projectGeneratorElectron

projectGeneratorElectron/app.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,7 @@ ipc.on('selectAddons', function(arg) {
222222
//haystack.indexOf(needle) >= 0
223223

224224
for (var i = 0; i < arg.length; i++) {
225+
arg[i] = arg[i].trim();
225226
// first, check if it's already picked, then do nothing
226227
if (addonsAlreadyPicked.indexOf(arg[i]) >= 0){
227228
console.log("already picked"); // alread picked

0 commit comments

Comments
 (0)