Skip to content

Commit

Permalink
Merge pull request #6780 from KevenDenen/go2-allowing-spaces
Browse files Browse the repository at this point in the history
[scripts][go2] Re-supporting the ability to use spaces in custom go2 locations
  • Loading branch information
MahtraDR authored Mar 3, 2024
2 parents fc19c02 + d55bef4 commit 3a8db0f
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions go2.lic
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,12 @@
original author: Shaelun
game: any
tags: core, movement
version: 1.35
version: 1.36
required: Lich >= 4.6.14
changelog:
1.36 (2024-03-03)
Re-supporting the ability to use spaces in custom go2 locations.
1.35 (2023-02-04)
Add support for custom named targets with an array of roomnumbers. Finds nearest.
1.34 (2022-11-26)
Expand Down Expand Up @@ -350,12 +352,12 @@ elsif script.vars[0] =~ /^list$/i
respond output
exit
elsif script.vars[1] =~ /^save/i
unless script.vars[0] =~ /^save ([a-zA-Z0-9!@.#$%_-]+)\s?=\s?(current|\d+)$/ || script.vars[0] =~ /^save ([a-zA-Z0-9!@.#$%_-]+)\s?=\s?\[?([current\d,\s]+)\]?$/
unless script.vars[0] =~ /^save ([a-zA-Z0-9!@.#$%_\s-]+)\s?=\s?(current|\d+)$/ || script.vars[0] =~ /^save ([a-zA-Z0-9!@.#$%_\s-]+)\s?=\s?\[?([current\d,\s]+)\]?$/
echo "error: format"
echo "error: proper format examples - ;go2 save test=1234 OR ;go2 save test=[1234, 1432] etc."
exit
end
target_name = $1
target_name = $1.strip
target = $2.split(',')
.collect(&:strip)

Expand Down

0 comments on commit 3a8db0f

Please sign in to comment.