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

Bump to v1.0.1, update README, optimize stripJC() #16

Merged
merged 1 commit into from
Dec 31, 2023

Conversation

mbland
Copy link
Owner

@mbland mbland commented Dec 31, 2023

stripJsonComments() is now more compact, and hopefully efficient. In particular, the newline and whitespace checks now prevent the rest of the comparisons from executing if the current character is whitespace.

Also shortened variable names to enable collapsing more lines. While normally this might hinder readability, I find it actually enhances it in this case. At the same time, I also updated some comments and added more explicit comments to explain why the conditions are organized as they are.

Updated the README to make sure all the example index.html paths are file:// URLs. Also updated the "Multilanguage project" section to show mbland/tomcat-servlet-testing-example using the installed package.

stripJsonComments() is now more compact, and hopefully efficient. In
particular, the newline and whitespace checks now prevent the rest of
the comparisons from executing if the current character is whitespace.

Also shortened variable names to enable collapsing more lines. While
normally this might hinder readability, I find it actually enhances it
in this case. At the same time, I also updated some comments and added
more explicit comments to explain why the conditions are organized as
they are.

Updated the README to make sure all the example index.html paths are
file:// URLs. Also updated the "Multilanguage project" section to show
mbland/tomcat-servlet-testing-example using the installed package.
@mbland mbland self-assigned this Dec 31, 2023
@coveralls
Copy link

Pull Request Test Coverage Report for Build 7371041035

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 100.0%

Totals Coverage Status
Change from base Build 7366100181: 0.0%
Covered Lines: 236
Relevant Lines: 236

💛 - Coveralls

@mbland mbland merged commit e6bee14 into main Dec 31, 2023
3 checks passed
@mbland mbland deleted the 1.0.1-bump-readme-update-and-strip-optimization branch December 31, 2023 14:29
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