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

Move replacers and global vars to helpers to avoid redeclarations #81

Merged
merged 3 commits into from
Oct 28, 2021

Conversation

sc-peter
Copy link
Contributor

@sc-peter sc-peter commented Oct 28, 2021

Generating validators for multiple different packages resulted in redeclaration of some of the global vars used for the replacers and PUA regex.

  • Move replacers and PAU regex to validation_helpers.go.

Note there are a few suggestions from the code review bot in other plugins that I will not fix as part of this change.

@sc-peter sc-peter marked this pull request as ready for review October 28, 2021 03:14
@sc-peter sc-peter requested a review from a team as a code owner October 28, 2021 03:14
@sc-peter sc-peter requested review from parmaviolet and sc-steven and removed request for a team October 28, 2021 03:14
@sc-peter sc-peter merged commit ba90342 into master Oct 28, 2021
@sc-peter sc-peter deleted the SEC-861-Fix-redeclaration branch October 28, 2021 03:48
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

3 participants