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

#607 Fix string value with spaces error #611

Merged
merged 1 commit into from
Dec 21, 2020
Merged

Conversation

djajcevic
Copy link
Contributor

@djajcevic djajcevic commented Dec 21, 2020

Fixes #607
I've added one more test that produces documentation entry.

The reason behind excluding space inside "..." is unknown to me, but since all tests are passing I think we are good. If needed, I can go a bit more into implementation to figure out a better solution.

By examining https://github.com/timtadh/lexmachine#adding-a-pattern I found that it is safe to remove that space from the regex exclude group since lexer.Add([]byte( ), token("SPACE")) is not an option for YQ.

@mikefarah mikefarah merged commit 540d495 into mikefarah:master Dec 21, 2020
@mikefarah
Copy link
Owner

Thanks @djajcevic!

@mikefarah
Copy link
Owner

Just a fyi in case you (hopefully) contribute more, I've moved the test case to operator_value_test.go

@djajcevic
Copy link
Contributor Author

@mikefarah should this be in Milestone 4.1.0 or you are planning to make a bug fix release (4.0.1).
I'm using a locally compiled version, for now, but would like to see this released as soon as possible.

@mikefarah
Copy link
Owner

Should hopefully release 4.1.0 tmrw along with other fixes, otherwise it will have to wait till after christmas.

@djajcevic
Copy link
Contributor Author

If you want, I can release 4.0.1 :) (if by following instructions you wrote I have permissions)

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.

Can't write a string value with a white space
2 participants