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

chore: disable tag validation function #7

Closed
wants to merge 2 commits into from

Conversation

mikefero
Copy link
Contributor

Tags validation is already occurring on the go side and gopher-lua does not properly handle ASCII (or extended ASCII) range expressions in the string.match implementation using gopher-lua/pm module.

@mikefero mikefero requested a review from a team as a code owner February 23, 2022 22:30
Tags validation is already occurring on the go side and gopher-lua does
not properly handle ASCII (or extended ASCII) range expressions in the
`string.match` implementation using gopher-lua/pm module.
@mikefero mikefero force-pushed the chore/disable-lua-tag-validation branch from c1037d6 to a08ca7e Compare February 23, 2022 22:33
+ -- end

return true
end
Copy link
Member

Choose a reason for hiding this comment

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

This function is considered part of the public interface that plugins can consume and hence I'm a bit hesitant to accept it.
If strings. the match is the root cause, is using the go.re2 module an option? That will still result in patch to this file, which is okay but it may be able to solve the problem for a wider base.

What do you think?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Makes sense to me, I will experiment a bit on this and run some tests to make sure this is a viable option.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed up the code, but needs further testing; converting PR to draft for further evaluation.

@mikefero mikefero marked this pull request as draft February 24, 2022 00:41
@mikefero mikefero closed this Mar 29, 2022
@mikefero
Copy link
Contributor Author

#10 implements this correctly

@hbagdi hbagdi deleted the chore/disable-lua-tag-validation branch June 21, 2022 16:12
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.

2 participants