mirror of
https://github.com/tateisu/SubwayTooter
synced 2025-01-28 01:29:23 +01:00
support some html tags
This commit is contained in:
parent
832fa23698
commit
6676b9b41f
File diff suppressed because it is too large
Load Diff
@ -80,7 +80,19 @@ object CharacterGroup {
|
|||||||
)
|
)
|
||||||
"[${quotedKeys}]+".asciiPattern()
|
"[${quotedKeys}]+".asciiPattern()
|
||||||
}
|
}
|
||||||
|
internal val reNotWhitespace by lazy {
|
||||||
|
val quotedKeys = Pattern.quote(
|
||||||
|
StringBuilder().apply {
|
||||||
|
val size = mapWhitespace.size()
|
||||||
|
ensureCapacity(size)
|
||||||
|
for(i in 0 until size) {
|
||||||
|
append(mapWhitespace.keyAt(i).toChar())
|
||||||
|
}
|
||||||
|
}.toString()
|
||||||
|
)
|
||||||
|
"[^${quotedKeys}]+".asciiPattern()
|
||||||
|
}
|
||||||
|
|
||||||
private fun SparseBooleanArray.keys() = (0 until size()).map { keyAt(it) }
|
private fun SparseBooleanArray.keys() = (0 until size()).map { keyAt(it) }
|
||||||
|
|
||||||
internal val reWhitespaceBeforeLineFeed by lazy {
|
internal val reWhitespaceBeforeLineFeed by lazy {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user