Skip to content

Commit

Permalink
add regex test
Browse files Browse the repository at this point in the history
  • Loading branch information
hannibal002 committed Apr 17, 2024
1 parent fdf5c89 commit aa3a6fb
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ class PatcherSendCoordinates {
private val patcherBeacon = mutableListOf<PatcherBeacon>()
private val logger = LorenzLogger("misc/patchercoords")

/**
* REGEX-TEST: hannibal2: x: 2, y: 3, z: 4
*/
private val coordinatePattern by RepoPattern.pattern(
"misc.patchercoords.coords",
"(?<playerName>.*): [xX]: (?<x>[0-9.-]+),? [yY]: (?<y>[0-9.-]+),? [zZ]: (?<z>.*)"
Expand Down

0 comments on commit aa3a6fb

Please sign in to comment.