diff --git a/src/main/kotlin/suwayomi/tachidesk/launcher/ui/Extension.kt b/src/main/kotlin/suwayomi/tachidesk/launcher/ui/Extension.kt index 2544b00..ffdef90 100644 --- a/src/main/kotlin/suwayomi/tachidesk/launcher/ui/Extension.kt +++ b/src/main/kotlin/suwayomi/tachidesk/launcher/ui/Extension.kt @@ -33,8 +33,8 @@ import javax.swing.JScrollPane private val repoMatchRegex = ( - "https:\\/\\/(?:www|raw)?(?:github|githubusercontent)\\.com" + - "\\/([^\\/]+)\\/([^\\/]+)(?:\\/(?:tree|blob)\\/(.*))?\\/?" + "https:\\/\\/(?>www\\.|raw\\.)?(github|githubusercontent)\\.com" + + "\\/([^\\/]+)\\/([^\\/]+)(?>(?>\\/tree|\\/blob)?\\/([^\\/\\n]*))?(?>\\/([^\\/\\n]*\\.json)?)?" ).toRegex() fun Extension(vm: LauncherViewModel, scope: CoroutineScope) = jpanel(