Skip to content

Avoid panicking if a bad regexp is returned after converting glob pattern to regexp#983

Open
rdelcampog wants to merge 1 commit intogo-rod:mainfrom
rdelcampog:main
Open

Avoid panicking if a bad regexp is returned after converting glob pattern to regexp#983
rdelcampog wants to merge 1 commit intogo-rod:mainfrom
rdelcampog:main

Conversation

@rdelcampog
Copy link
Copy Markdown

Fixes #982

Development guide

Link

Test on local before making the PR

go run ./lib/utils/simple-check

Copy link
Copy Markdown

@codespearhead codespearhead left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you implement that change in all other instances of regexp.MustCompile in the codebase?

@ysmood ysmood force-pushed the main branch 2 times, most recently from 5da0786 to 0c7bc12 Compare June 17, 2024 08:39
@ysmood ysmood force-pushed the main branch 7 times, most recently from 834f2bf to c42b414 Compare July 8, 2024 09:02
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.

Avoid panicking if a bad regexp is returned when hijacking using an incorrect pattern

2 participants