Skip to content

Fix pinpoint script parsing#9262

Merged
zachmargolis merged 1 commit intomainfrom
margolis-pinpoint-support-cleanup
Sep 25, 2023
Merged

Fix pinpoint script parsing#9262
zachmargolis merged 1 commit intomainfrom
margolis-pinpoint-support-cleanup

Conversation

@zachmargolis
Copy link
Contributor

This footnote for New Zealand appeared and broke our script, so this PR strips trailing footnote digits from country names, fixes build

screenshot
Screenshot 2023-09-25 at 8 33 58 AM

- Strips trailing footnote digits from country names, fixes build

changelog: Internal, Scripts, Update pinpoint support script
Copy link
Contributor

@ThatSpaceGuy ThatSpaceGuy left a comment

Choose a reason for hiding this comment

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

Nice catch!

Copy link
Contributor

@soniaconnolly soniaconnolly left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

str.gsub(/\s{2,}/, ' ').gsub(/\s+$/, '')
end

def trim_spaces_digits(str)
Copy link
Contributor

Choose a reason for hiding this comment

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

Add a comment explaining why this is here?

Suggested change
def trim_spaces_digits(str)
# Remove trailing footnote numbers from country names
def trim_spaces_digits(str)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

we have a bunch of trimming code and other footnotes in other columns (and in the specs) so I think it'll be ok without

@zachmargolis zachmargolis merged commit 0cf4be7 into main Sep 25, 2023
@zachmargolis zachmargolis deleted the margolis-pinpoint-support-cleanup branch September 25, 2023 15:47
@solipet solipet mentioned this pull request Sep 26, 2023
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.

5 participants