mirror of
https://github.com/recloudstream/cloudstream.git
synced 2024-08-15 01:53:11 +00:00
bugfix: fixing regex special chars break it (#1047)
This commit is contained in:
parent
6df3ef14f6
commit
9a18ef6411
1 changed files with 1 additions and 1 deletions
|
@ -50,7 +50,7 @@ class JsUnpacker(packedJS: String?) {
|
||||||
throw Exception("Unknown p.a.c.k.e.r. encoding")
|
throw Exception("Unknown p.a.c.k.e.r. encoding")
|
||||||
}
|
}
|
||||||
val unbase = Unbase(radix)
|
val unbase = Unbase(radix)
|
||||||
p = Pattern.compile("\\b\\w+\\b")
|
p = Pattern.compile("""\b[a-zA-Z0-9_]+\b""")
|
||||||
m = p.matcher(payload)
|
m = p.matcher(payload)
|
||||||
val decoded = StringBuilder(payload)
|
val decoded = StringBuilder(payload)
|
||||||
var replaceOffset = 0
|
var replaceOffset = 0
|
||||||
|
|
Loading…
Reference in a new issue