File tree Expand file tree Collapse file tree
main/kotlin/me/proxer/library/util
test/kotlin/me/proxer/library/util Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ import okhttp3.HttpUrl
1414 */
1515object ProxerUrls {
1616
17- private val PROXER_STREAM_FILE_HOST_PATTERN = Regex (" s[0-9]+(- psc?|\\ .stream)\\ .proxer\\ .me" )
17+ private val PROXER_STREAM_FILE_HOST_PATTERN = Regex (" s[0-9]+(?:(?:.|-) psc?|\\ .stream)\\ .proxer\\ .me" )
1818 private val PROXER_MANGA_HOST_PATTERN = Regex (" manga[0-9]+\\ .proxer\\ .me" )
1919
2020 /* *
Original file line number Diff line number Diff line change @@ -229,6 +229,11 @@ class ProxerUrlsTest {
229229 assertThat(ProxerUrls .hasProxerHost(HttpUrl .get(" https://s39-ps.proxer.me/files/test.mp4" ))).isTrue()
230230 }
231231
232+ @Test
233+ fun testHasDotSeparatedProxerHostFileStream () {
234+ assertThat(ProxerUrls .hasProxerHost(HttpUrl .get(" https://s39.ps.proxer.me/files/test.mp4" ))).isTrue()
235+ }
236+
232237 @Test
233238 fun testHasNewProxerHostFileStream () {
234239 assertThat(ProxerUrls .hasProxerHost(HttpUrl .get(" https://s39-psc.proxer.me/files/test.mp4" ))).isTrue()
You can’t perform that action at this time.
0 commit comments