Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

Commit 13db8ac

Browse files
committed
Deprecate REGEX_SPA_COORDS and REGEX_SPA_SIZE in favor of REGEX_COORDS and REGEX_RANGE
1 parent 7559a27 commit 13db8ac

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

src/Constants.lua

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,12 @@ REGEX_ITEM_DURATION = '^You see an? (.-) that will expire in (.-)%.'
2121
REGEX_PLAYER_BASIC = '^You see (.-) %(Level (%d+)%)%. (%a+) is an? (.-)%.'
2222
REGEX_PLAYER_FULL = REGEX_PLAYER_BASIC .. ' %u%l%l? is (.-) of the (.+), which has (%d+) members, (%d+) of them online%.$'
2323
REGEX_SERVER_SAVE = '^Server is saving game in (%d+) minutes?. Please .+%.$'
24-
REGEX_SPA_COORDS = '^x:(%d+), y:(%d+), z:(%d+)$'
25-
REGEX_SPA_SIZE = '^(%d+) x (%d+)$'
24+
REGEX_COORDS = '^x:(%d+), y:(%d+), z:(%d+)$'
25+
REGEX_RANGE = '^(%d+) x (%d+)$'
26+
27+
-- Deprecated regexes
28+
REGEX_SPA_COORDS = REGEX_COORDS
29+
REGEX_SPA_SIZE = REGEX_RANGE
2630

2731

2832
-- Custom Types properties

0 commit comments

Comments
 (0)