Skip to content

Conversation

fvictorio
Copy link
Contributor

Before this change, the parser would take something like this:

pragma solidity >= 0.5.0 <0.7.0

and give the pragma value as >=0.5.0<0.7.0, which is an invalid range (at least to node-semver).

With this change, >=0.5.0 <0.7.0 will be returned instead. Notice though that the space after >= was lost.

@fvictorio fvictorio merged commit a797188 into master Sep 1, 2020
@fvictorio fvictorio deleted the fix-pragma-values branch September 1, 2020 18:48
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.

1 participant