Skip to content

Commit

Permalink
Fix: Colored Classlevel Tablist (#2814)
Browse files Browse the repository at this point in the history
  • Loading branch information
j10a1n15 authored Oct 26, 2024
1 parent 26835af commit 31d2b53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/at/hannibal2/skyhanni/utils/RegexUtils.kt
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ object RegexUtils {
*/
fun Matcher.groupOrNull(groupName: String): String? = runCatching { group(groupName) }.getOrNull()

fun Matcher.groupOrEmpty(groupName: String): String = runCatching { group(groupName) }.getOrDefault("")
fun Matcher.groupOrEmpty(groupName: String): String = groupOrNull(groupName).orEmpty()

fun Matcher.hasGroup(groupName: String): Boolean = groupOrNull(groupName) != null

Expand Down

0 comments on commit 31d2b53

Please sign in to comment.