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

Fixed #5355 - Named variables don't work when followed by Windows CRLF line endings #5356

Conversation

clarkmcc
Copy link
Contributor

  • Do only one thing
  • Non breaking API changes
  • Tested

What did this pull request do?

Fixes #5355

User Case Description

If a named variable is followed by Windows CRLF style line endings, the variable name will include the \r portion of the line ending which causes the variable lookup in the namedMap to fail. In my PR, I've updated the expression builder to look for \r in addition to \n.

@clarkmcc clarkmcc changed the title Fixed #5355. Fixed #5355 - Named variables don't work when followed by Windows CRLF line endings May 21, 2022
@jinzhu jinzhu merged commit 540fb49 into go-gorm:master May 22, 2022
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.

Named variables don't work when followed by Windows CRLF line endings
3 participants