From 2af0fd1e7b39b433ff7a98dff08a1cd55b285c0b Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal002@users.noreply.github.com> Date: Wed, 28 Aug 2024 09:23:42 +0200 Subject: Fix: Patcher coordinates chat detection (#2410) Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com> --- .../at/hannibal2/skyhanni/features/misc/PatcherSendCoordinates.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/main/java/at/hannibal2/skyhanni/features/misc') 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", - "(?.*): [xX]: (?[0-9.-]+),? [yY]: (?[0-9.-]+),? [zZ]: (?.*)" + "(?.*): [xX]: (?[0-9.-]+),? [yY]: (?[0-9.-]+),? [zZ]: (?[0-9.-]+(?: .*)?)" ) @SubscribeEvent -- cgit