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

check for undesirable quotes #260

Merged
merged 1 commit into from Jun 20, 2022
Merged

check for undesirable quotes #260

merged 1 commit into from Jun 20, 2022

Conversation

mefuller
Copy link
Contributor

@mefuller mefuller commented Jun 16, 2022

Fixes #66.

It's also my first attempt to meaningfully work on go/golang, so any guidance or pointers are very appreciated

Since processed strings are enclosed in outer double quotes, I test for a double quote contained anywhere as well as for enclosing single quotes, which would then be captured inside double quotes and result in a mismatch

Thanks

Copy link
Owner

@mbrt mbrt left a comment

Choose a reason for hiding this comment

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

Thanks for your contribution! I left some comments to simplify things a bit. Hopefully it's helpful.

internal/engine/filter/convert.go Outdated Show resolved Hide resolved
internal/engine/filter/convert.go Outdated Show resolved Hide resolved
internal/engine/filter/convert.go Outdated Show resolved Hide resolved
internal/engine/filter/convert.go Outdated Show resolved Hide resolved
internal/engine/filter/convert.go Outdated Show resolved Hide resolved
@mefuller
Copy link
Contributor Author

@mbrt thank you for your help and patience.
I updated convert.go per your suggestions and will work on writing a test next

internal/engine/filter/convert.go Outdated Show resolved Hide resolved
internal/engine/filter/convert.go Show resolved Hide resolved
internal/engine/filter/convert_test.go Show resolved Hide resolved
@mefuller
Copy link
Contributor Author

I think this is finally "correct" and I have squashed and reworded my commits appropriately.
Thank you very much again for working with me

Copy link
Owner

@mbrt mbrt left a comment

Choose a reason for hiding this comment

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

Thanks for the changes! We're almost there.

internal/engine/filter/convert.go Outdated Show resolved Hide resolved
@mbrt
Copy link
Owner

mbrt commented Jun 20, 2022

Thank you @mefuller! This is good to go.

@mbrt mbrt merged commit 04dde7e into mbrt:master Jun 20, 2022
@mefuller
Copy link
Contributor Author

Thank you @mbrt

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.

Subject (and possibly other rules) with quotes
2 participants