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: use golang.org/x/net/html to parse HTML instead of regular expressions #38

Open
wants to merge 18 commits into
base: master
Choose a base branch
from

Conversation

cgrindel
Copy link

@cgrindel cgrindel commented Nov 7, 2022

Related to cgrindel/bazel-starlib#160

The HTML being returned by GitHub seems to have changed slightly. The regular expression was not working.

  • Update code to use html package to parse the HTML generated from the markdown.
  • Upgrade Go toolchain to 1.19.
  • Addressed deprecation warnings regarding use of io/ioutil.
  • Fixed malformed HTML in one of the tests.

@cgrindel
Copy link
Author

cgrindel commented Nov 8, 2022

@ekalinin I must have had an old fork. I have rebased from master. This PR should be ready for review.

@cgrindel
Copy link
Author

@ekalinin Gentle ping for a review. Thanks!

@cgrindel
Copy link
Author

@ekalinin I just wanted to check in to see if you could look at this pull request. Using the HTML package to parse the HTML should avoid any future failures due to subtle changes in the HTML produced by GitHub. I look forward to your feedback.

@cgrindel
Copy link
Author

@ekalinin Any thoughts on this PR?

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.

None yet

1 participant