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

[scripts][go2] Re-supporting the ability to use spaces in custom go2 locations #6780

Merged
merged 2 commits into from
Mar 3, 2024

Conversation

KevenDenen
Copy link
Contributor

An earlier commit removed the ability to use spaces as part of custom locations. This adds back in that ability.

Copy link
Contributor

@urbaj-dr urbaj-dr left a comment

Choose a reason for hiding this comment

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

I think that this change to the regex could allow for accidental duplicated custom targets, based on how go2 handles whitespace.

go2 save test=1901
go2 save test = 1900

These would get saved as "test" and "test ", and only "go2 test" [the target without a trailing space] would be navigable.

It's not a big problem, but stripping the whitespace on line 360 should solve it

   target_name = $1.strip

@KevenDenen
Copy link
Contributor Author

Added in a strip per @urbaj-dr. Also, removed the extra space from my history comment to appease rubocop.

@MahtraDR MahtraDR changed the title Re-supporting the ability to use spaces in custom go2 locations [scripts][go2] Re-supporting the ability to use spaces in custom go2 locations Mar 3, 2024
@MahtraDR MahtraDR merged commit 3a8db0f into elanthia-online:master Mar 3, 2024
1 of 2 checks passed
@KevenDenen KevenDenen deleted the go2-allowing-spaces branch March 3, 2024 21:02
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