Skip to content

Commit b78918f

Browse files
committed
Merge pull request #66 from mattfelsen/addons-trim-crlf
Trim whitespace/newlines when parsing addons
2 parents b82cbaf + 5d44ccf commit b78918f

File tree

1 file changed

+1
-0
lines changed
  • projectGeneratorElectron

1 file changed

+1
-0
lines changed

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)