Skip to content

Commit

Permalink
Fix discord sound detection
Browse files Browse the repository at this point in the history
  • Loading branch information
DRSchlaubi committed Nov 12, 2024
1 parent 50f6c41 commit 8f62737
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,9 @@ import io.ktor.server.routing.Route
import kotlinx.coroutines.delay
import kotlinx.coroutines.flow.toList
import org.bson.types.ObjectId
import org.litote.kmongo.toId
import kotlin.time.Duration.Companion.milliseconds

private val discordIdPattern = Regex("\\d{18,}")
private val discordIdPattern = Regex("\\d(?:\\d{17,})?")

@OptIn(KordUnsafe::class, KordExperimental::class)
fun Route.sounds() {
Expand Down
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ plugins {

allprojects {
group = "dev.schlaubi.tonbrett"
version = "2.1.4"
version = "2.1.5"

repositories {
mavenCentral()
Expand Down

0 comments on commit 8f62737

Please sign in to comment.