0
0
mirror of https://github.com/markusfisch/BinaryEye.git synced 2024-09-20 03:52:16 +02:00

Break very long lines in IAction

Improves readability for my taste.
This commit is contained in:
Markus Fisch 2022-03-18 20:44:55 +01:00
parent 268c395043
commit 6d5aed816f

View File

@ -26,7 +26,10 @@ abstract class IntentAction : IAction {
}
}
abstract suspend fun createIntent(context: Context, data: ByteArray): Intent?
abstract suspend fun createIntent(
context: Context,
data: ByteArray
): Intent?
}
abstract class SchemeAction : IAction {
@ -36,7 +39,9 @@ abstract class SchemeAction : IAction {
final override fun canExecuteOn(data: ByteArray): Boolean {
val content = String(data)
return if (buildRegex) {
content.matches("""^$scheme://[\w\W]+$""".toRegex(RegexOption.IGNORE_CASE))
content.matches("""^$scheme://[\w\W]+$""".toRegex(
RegexOption.IGNORE_CASE)
)
} else {
content.startsWith("$scheme://", ignoreCase = true)
}