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 hang with very long lines #373

Merged
merged 1 commit into from
Nov 30, 2020
Merged

Conversation

gpflaum
Copy link
Contributor

@gpflaum gpflaum commented Nov 24, 2020

Fixes #372

OPTIONAL_NON_WHITESPACE is used only in FOLLOWED_BY_QUOTES_AND_SEMICOLON_REGEX. I'm not completely sure of the intended use of OPTIONAL_NON_WHITESPACE there. The example is:

    # e.g. private_key "something";

I'm guessing it is meant to also handle something like this, where "_for_the_server" would be matched by OPTIONAL_NON_WHITESPACE. My change limits matching of that extra text to 50 characters.

private_key_for_the_server "something";

Copy link
Contributor

@domanchi domanchi left a comment

Choose a reason for hiding this comment

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

Seems sane to me.

@domanchi domanchi merged commit 5b262f2 into Yelp:pre-v1-launch Nov 30, 2020
jimmyhlee94 pushed a commit to jimmyhlee94/detect-secrets that referenced this pull request Aug 19, 2021
* Fix py2 error

* Fix flake8
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

2 participants