Skip to content

Commit

Permalink
Remove redundant character escape in RegExp (#4892)
Browse files Browse the repository at this point in the history
  • Loading branch information
schalkms committed Jun 1, 2022
1 parent 6d2933d commit 8b36502
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -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)
Expand Down

0 comments on commit 8b36502

Please sign in to comment.