Skip to content

Commit

Permalink
KSVersion: allow new snapshotXXX syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
GreyCat committed Feb 5, 2018
1 parent 8b4a94c commit 6bad2fc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ object KSVersion {
def current: KSVersion = _current.get

def fromStr(str: String): KSVersion =
KSVersion(str.replace("-SNAPSHOT", "").split('.').map(_.toInt).toList)
KSVersion(str.replaceAll("-SNAPSHOT.*$", "").split('.').map(_.toInt).toList)

/**
* Hardcoded minimal version of runtime API that this particular
Expand Down

0 comments on commit 6bad2fc

Please sign in to comment.