aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal002@users.noreply.github.com>2024-08-28 09:23:42 +0200
committerGitHub <noreply@github.com>2024-08-28 09:23:42 +0200
commit2af0fd1e7b39b433ff7a98dff08a1cd55b285c0b (patch)
tree527e3067c6ace1751df9ebb9010f5de4372114fd /src/main/java/at/hannibal2
parenta956fe9546b746bbd171f5e33d3c1089112f86b2 (diff)
downloadskyhanni-2af0fd1e7b39b433ff7a98dff08a1cd55b285c0b.tar.gz
skyhanni-2af0fd1e7b39b433ff7a98dff08a1cd55b285c0b.tar.bz2
skyhanni-2af0fd1e7b39b433ff7a98dff08a1cd55b285c0b.zip
Fix: Patcher coordinates chat detection (#2410)
Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com>
Diffstat (limited to 'src/main/java/at/hannibal2')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/misc/PatcherSendCoordinates.kt4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/misc/PatcherSendCoordinates.kt b/src/main/java/at/hannibal2/skyhanni/features/misc/PatcherSendCoordinates.kt
index 9953199c8..98232a428 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/misc/PatcherSendCoordinates.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/misc/PatcherSendCoordinates.kt
@@ -30,10 +30,12 @@ object PatcherSendCoordinates {
/**
* REGEX-TEST: hannibal2: x: 2, y: 3, z: 4
+ * REGEX-TEST: hannibal2: x: 2, y: 3, z: 4broken
+ * REGEX-TEST: hannibal2: x: 2, y: 3, z: 4 extra text
*/
private val coordinatePattern by RepoPattern.pattern(
"misc.patchercoords.coords",
- "(?<playerName>.*): [xX]: (?<x>[0-9.-]+),? [yY]: (?<y>[0-9.-]+),? [zZ]: (?<z>.*)"
+ "(?<playerName>.*): [xX]: (?<x>[0-9.-]+),? [yY]: (?<y>[0-9.-]+),? [zZ]: (?<z>[0-9.-]+(?: .*)?)"
)
@SubscribeEvent