Skip to content

Conversation

@whatyouhide
Copy link
Member

No description provided.

@whatyouhide whatyouhide requested a review from josevalim May 8, 2017 15:27
:error
end
end
destructure [version_with_pre, build_metadata], String.split(string, "+", parts: 2)
Copy link
Member

Choose a reason for hiding this comment

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

Why not?

[version_with_pre | build_metadata] = String.split(string, "+")

Copy link
Member Author

Choose a reason for hiding this comment

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

Only one + is allowed. I don't see the advantage of doing that :|

@josevalim josevalim merged commit 60aebd5 into elixir-lang:master May 8, 2017
@josevalim
Copy link
Member

❤️ 💚 💙 💛 💜

josevalim pushed a commit that referenced this pull request May 8, 2017
Signed-off-by: José Valim <jose.valim@plataformatec.com.br>
end
destructure [version_with_pre, build], String.split(string, "+", parts: 2)
destructure [version, pre], String.split(version_with_pre, "-", parts: 2)
destructure [major, minor, patch], String.split(version, ".")
Copy link
Member

Choose a reason for hiding this comment

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

Do we have a test case for "1.2.3.4"? I don't see how we catch this.

Copy link
Member

Choose a reason for hiding this comment

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

Good catch. Fixed.

@whatyouhide whatyouhide deleted the no-regex-in-version branch May 8, 2017 21:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants