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

Fix hash generation for indented helper methods #472

Merged
merged 1 commit into from
Sep 7, 2021

Conversation

rahearn
Copy link
Contributor

@rahearn rahearn commented Aug 27, 2021

The helper outputs the closing </script> or </style> unindented
if it is on its own line. Needed to remove any extra whitespace
the regex captures on that last line.

All PRs:

  • Has tests
    Honestly, I wasn't sure how to test this without also refactoring the entire rake task.

  • Documentation updated
    Didn't think any documentation needed to be updated since this is really just working better now.

Related to comments in #432, though maybe not the original issue.

The helper outputs the closing </script> or </style> unindented
if it is on its own line. Needed to remove any extra whitespace
the regex captures on that last line.
@oreoshake
Copy link
Contributor

Thanks!

  • Honestly, I wasn't sure how to test this without also refactoring the entire rake task.

🤔 I'll put some thought into it but I'm also happy to merge and release (with a note that this is experimental at best).

@oreoshake
Copy link
Contributor

I tested this out locally and it works with all kinds of wonky spacing. I'll merge/release.

@oreoshake oreoshake merged commit e4caeb0 into github:main Sep 7, 2021
@oreoshake
Copy link
Contributor

@rahearn rahearn deleted the generate-hashes-trailing-whitespace branch June 2, 2022 14:48
@rahearn rahearn mentioned this pull request Jun 2, 2022
2 tasks
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