Skip to content

fix for panics when humanize called on whitespace#75

Merged
paganotoni merged 1 commit into
gobuffalo:mainfrom
khayyamsaleem:bugfix/74
Sep 21, 2024
Merged

fix for panics when humanize called on whitespace#75
paganotoni merged 1 commit into
gobuffalo:mainfrom
khayyamsaleem:bugfix/74

Conversation

@khayyamsaleem

Copy link
Copy Markdown
Contributor

What is being done in this PR?

Fixed #74

What are the main choices made to get to this solution?

Determine if it is a whitespace string with strings.TrimSpace, and if so, return the unmodified input string

What was discovered while working on it? (Optional)

it panics (but not anymore)

List the manual test cases you've covered before sending this PR:

Ran go test -v ./..., using all the tests supplied in issue #74

@paganotoni paganotoni left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@paganotoni paganotoni merged commit cbe6b82 into gobuffalo:main Sep 21, 2024
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.

bug: Panic (index out of range) when humanizing whitespace

2 participants