From d34665d8cca7cabb2544e757092f25ba32f4db46 Mon Sep 17 00:00:00 2001 From: MohamedRejeb Date: Sun, 26 May 2024 19:15:24 +0200 Subject: [PATCH] Change LONGEST_HTML_ENTITY_LENGTH to const --- .../com/mohamedrejeb/ksoup/html/tokenizer/KsoupTokenizer.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ksoup-html/src/commonMain/kotlin/com/mohamedrejeb/ksoup/html/tokenizer/KsoupTokenizer.kt b/ksoup-html/src/commonMain/kotlin/com/mohamedrejeb/ksoup/html/tokenizer/KsoupTokenizer.kt index 3634916..aec5784 100644 --- a/ksoup-html/src/commonMain/kotlin/com/mohamedrejeb/ksoup/html/tokenizer/KsoupTokenizer.kt +++ b/ksoup-html/src/commonMain/kotlin/com/mohamedrejeb/ksoup/html/tokenizer/KsoupTokenizer.kt @@ -851,7 +851,7 @@ internal class KsoupTokenizer( } private companion object { - val LONGEST_HTML_ENTITY_LENGTH = "∳".length + const val LONGEST_HTML_ENTITY_LENGTH = "∳".length /** * Returns true if the given code point is a whitespace character.