theapache64 / retrosheet

đŸ“ƒ Turn Google Spreadsheet to JSON endpoint (for Android and JVM) for FREE (100%)
Apache License 2.0
845 stars 39 forks source link

PatternSyntaxException when deploy on AndroidTV #28

Closed M4NN3 closed 1 year ago

M4NN3 commented 1 year ago

There is a PatternSyntaxException when compiling to Android TV API 21 E/AndroidRuntime: FATAL EXCEPTION: OkHttp Dispatcher java.util.regex.PatternSyntaxException: Syntax error in regexp pattern near index 45: https://docs\.google\.com/spreadsheets/d/(?<docId>.+)/(?<params>.+) ^ at java.util.regex.Pattern.compileImpl(Native Method) at java.util.regex.Pattern.compile(Pattern.java:411) at java.util.regex.Pattern.<init>(Pattern.java:394) at java.util.regex.Pattern.compile(Pattern.java:381) at kotlin.text.Regex.<init>(Regex.kt:89) at com.github.theapache64.retrosheet.RetrosheetInterceptor$Companion$URL_REGEX$2.invoke(RetrosheetInterceptor.kt:48) at com.github.theapache64.retrosheet.RetrosheetInterceptor$Companion$URL_REGEX$2.invoke(RetrosheetInterceptor.kt:47) at kotlin.SynchronizedLazyImpl.getValue(LazyJVM.kt:74) at com.github.theapache64.retrosheet.RetrosheetInterceptor$Companion.getURL_REGEX(RetrosheetInterceptor.kt:47) at com.github.theapache64.retrosheet.RetrosheetInterceptor$Companion.access$getURL_REGEX(RetrosheetInterceptor.kt:38) at com.github.theapache64.retrosheet.RetrosheetInterceptor.getModifiedRequest(RetrosheetInterceptor.kt:262) at com.github.theapache64.retrosheet.RetrosheetInterceptor.getRetrosheetResponse(RetrosheetInterceptor.kt:179) at com.github.theapache64.retrosheet.RetrosheetInterceptor.intercept(RetrosheetInterceptor.kt:169) at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:142) at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:117) at okhttp3.RealCall.getResponseWithInterceptorChain(RealCall.java:229) at okhttp3.RealCall$AsyncCall.execute(RealCall.java:172) at okhttp3.internal.NamedRunnable.run(NamedRunnable.java:32) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587) at java.lang.Thread.run(Thread.java:818)