Skip to content

Commit 045c1c8

Browse files
committed
fix: correct implementation of RegexOperationMatcher
1 parent 5116696 commit 045c1c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

connection-shared/src/main/kotlin/app/simplecloud/plugin/connection/shared/matcher/RegexOperationMatcher.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import org.spongepowered.configurate.objectmapping.ConfigSerializable
66
object RegexOperationMatcher : OperationMatcher {
77

88
override fun matches(name: String, value: String): Boolean {
9-
return name.equals(Regex.fromLiteral(value))
9+
return Regex(value).matches(name)
1010
}
1111

1212
}

0 commit comments

Comments
 (0)