Skip to content

Stop at '<' when parsing the MR body to support LocalRegistry.jl #36

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

Merged
merged 2 commits into from
Apr 27, 2022

Conversation

arnaudh
Copy link
Contributor

@arnaudh arnaudh commented Apr 27, 2022

Implements #35

Opted for a simple fix where we stop matching fields at < as these represent the start of potential HTML tags. This should be ok given< is not a valid character in URLs, commit SHA-1 hashes, or semver versions.

Alternatives could be:

  1. Parse as HTML and remove all HTML tags before processing the text (more complex)
  2. Stricter regexes for each field: a URL regex, semver version regex, commit SHA-1 regex (more complex + unnecessarily strict)

@arnaudh arnaudh force-pushed the ah/support-localregistry-mrs branch from 93d429d to 80507ea Compare April 27, 2022 14:27
@arnaudh arnaudh merged commit 090eb6b into master Apr 27, 2022
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.

3 participants