From 52dff97184f500420d09cd88ac490824e1e7f3ee Mon Sep 17 00:00:00 2001 From: schalkms Date: Wed, 1 Jun 2022 22:53:09 +0200 Subject: [PATCH] Remove redundant character escape in RegExp --- .../io/gitlab/arturbosch/detekt/rules/style/MaxLineLength.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/detekt-rules-style/src/main/kotlin/io/gitlab/arturbosch/detekt/rules/style/MaxLineLength.kt b/detekt-rules-style/src/main/kotlin/io/gitlab/arturbosch/detekt/rules/style/MaxLineLength.kt index e1c29b65386..fcc7ba67c1a 100644 --- a/detekt-rules-style/src/main/kotlin/io/gitlab/arturbosch/detekt/rules/style/MaxLineLength.kt +++ b/detekt-rules-style/src/main/kotlin/io/gitlab/arturbosch/detekt/rules/style/MaxLineLength.kt @@ -96,7 +96,7 @@ class MaxLineLength(config: Config = Config.empty) : Rule(config) { companion object { private const val DEFAULT_IDEA_LINE_LENGTH = 120 - private val BLANK_OR_QUOTES = """[\s\"]*""".toRegex() + private val BLANK_OR_QUOTES = """[\s"]*""".toRegex() private fun findFirstMeaningfulKtElementInParents(file: KtFile, offset: Int, line: String): PsiElement? { return findKtElementInParents(file, offset, line)