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

hurlfmt: regex are not colored when exporting to standalone HTML #2693

Closed
jcamiel opened this issue Apr 18, 2024 · 0 comments · Fixed by #2694
Closed

hurlfmt: regex are not colored when exporting to standalone HTML #2693

jcamiel opened this issue Apr 18, 2024 · 0 comments · Fixed by #2694
Labels
bug Something isn't working
Milestone

Comments

@jcamiel
Copy link
Collaborator

jcamiel commented Apr 18, 2024

With this hurl file:

GET http://localhost:8000/assert-match
HTTP 200
[Asserts]
jsonpath "$.date1" matches "\\d{4}-\\d{2}-\\d{2}"
jsonpath "$.date1" matches /\d{4}-\d{2}-\d{2}/
jsonpath "$.date2" matches /\d{4}-\d{2}-\d{2}/
jsonpath "$.date1" matches /^\d{4}-\d{2}-\d{2}$/
jsonpath "$.date2" not matches /^\d{4}-\d{2}-\d{2}$/
jsonpath "$.path1" matches /aa\/bb/
jsonpath "$.path2" matches /aa\\bb/
$ hurlfmt --out html --standalone tests_ok/assert_match.hurl

Produces this HTML

html

@jcamiel jcamiel added the bug Something isn't working label Apr 18, 2024
@jcamiel jcamiel added this to the 4.3.0 milestone Apr 18, 2024
@jcamiel jcamiel linked a pull request Apr 18, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant