Skip to content

Conversation

@fcastilloec
Copy link
Collaborator

Fixes #249

@fcastilloec fcastilloec requested a review from malept March 12, 2019 19:00
Copy link
Member

@malept malept left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps use sanitizeName instead?

@fcastilloec
Copy link
Collaborator Author

I thought about it originally, but because dashes do work on Linux for this module, I thought that throwing an error rather than replacing the character might be more appropriate.
I guess we can enforce no-dashes for all OSs rather than have the option of having dashes in some OS and no dashes for others. Thoughts?

@malept
Copy link
Member

malept commented Mar 12, 2019

It's probably better to be consistent rather than have to explain to people that it behaves differently on different host OSes.

@fcastilloec
Copy link
Collaborator Author

fcastilloec commented Mar 12, 2019

I've changed to using sanitizeName and remove the test since it's function it's already tested in the electron-installer-common module

@malept malept changed the title Test for dashes Remove dashes from name Mar 12, 2019
@malept malept merged commit 63f7b1e into master Mar 12, 2019
@malept malept deleted the test-for-dashes branch March 12, 2019 23:17
@fcastilloec fcastilloec mentioned this pull request Jun 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants