Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added support for dashes in installation path. #1037

Merged
merged 1 commit into from
Jun 2, 2017
Merged

Added support for dashes in installation path. #1037

merged 1 commit into from
Jun 2, 2017

Conversation

robertohuertasm
Copy link
Contributor

Fixes #1035.

The issue was also raised in electron-builder`s repo #637

get { return Filename.Substring(0, Filename.IndexOfAny(new[] { '-', '.' })); }
get
{
var rx = new Regex(@"^([\w-_\s]+)-\d+\..+\.nupkg$");
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you pull this out into a constant? No reason to recreate it all the time

Copy link
Contributor Author

@robertohuertasm robertohuertasm May 27, 2017

Choose a reason for hiding this comment

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

I've added a private static var with the regex according to the code style of the file.

@robertohuertasm robertohuertasm changed the title Added support for dashes in installation path. Added support for dashes and spaces in installation path. May 27, 2017
@robertohuertasm robertohuertasm changed the title Added support for dashes and spaces in installation path. Added support for dashes in installation path. May 27, 2017
@anaisbetts anaisbetts merged commit ecb8d25 into Squirrel:master Jun 2, 2017
@anaisbetts
Copy link
Contributor

Thanks!

@robertohuertasm robertohuertasm deleted the feature-add-dash-support-installation-path branch June 3, 2017 09:22
@robertohuertasm robertohuertasm restored the feature-add-dash-support-installation-path branch June 6, 2017 11:42
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.

2 participants