Skip to content

Commit d761bfd

Browse files
Update Regex
1 parent 8d0f52e commit d761bfd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/kotlin/org/elliotnash/yeppaper/YepPaperPlugin.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class YepPaperPlugin : JavaPlugin(), Listener {
3131
private val textSerializer = PlainTextComponentSerializer.plainText()
3232

3333
companion object {
34-
private val colorCodeRegex = "&[0-9a-fk-orx]".toRegex(RegexOption.IGNORE_CASE)
34+
private val colorCodeRegex = "[§&][0-9a-fk-orx]".toRegex(RegexOption.IGNORE_CASE)
3535
}
3636

3737
override fun onEnable() {

0 commit comments

Comments
 (0)