Skip to content

Commit

Permalink
use / as lcc round/id separator
Browse files Browse the repository at this point in the history
  • Loading branch information
ornicar committed Jun 21, 2024
1 parent 1cb5eb2 commit 5192ca0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/relay/src/main/RelayRound.scala
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ object RelayRound:
def findId(url: String): Option[String] = url match
case idRegex(id) => id.some
case _ => none
def find(url: String): Option[UpstreamLcc] = url.split(' ').map(_.trim).filter(_.nonEmpty) match
def find(url: String): Option[UpstreamLcc] = url.split('/').map(_.trim).filter(_.nonEmpty) match
case Array(idRegex(id), round) => round.toIntOption.map(UpstreamLcc(id, _))
case _ => none

Expand Down

0 comments on commit 5192ca0

Please sign in to comment.