Skip to content

Commit

Permalink
adapt to scala/scala#9292 (CharSequence)
Browse files Browse the repository at this point in the history
  • Loading branch information
SethTisue committed Nov 19, 2020
1 parent 363647c commit 6d21796
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -24,7 +24,7 @@ final class DisableSyntax(config: DisableSyntaxConfig)
Position.Range(doc.input, offset, offset)
val regexDiagnostics = Seq.newBuilder[Diagnostic]
config.regex.foreach { regex =>
val matcher = regex.value.matcher(doc.input.chars)
val matcher = regex.value.matcher(java.nio.CharBuffer.wrap(doc.input.chars))
val pattern = regex.value.pattern
val message = regex.message.getOrElse(s"$pattern is disabled")
while (matcher.find()) {
Expand Down

0 comments on commit 6d21796

Please sign in to comment.