diff options
Diffstat (limited to 'src/main/java/at/hannibal2')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/misc/PatcherSendCoordinates.kt | 4 |
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 |