Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
VuhDo
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
122
Issues
122
List
Boards
Labels
Service Desk
Milestones
Merge Requests
5
Merge Requests
5
Operations
Operations
Environments
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
VuhDo
VuhDo
Commits
cb79c62c
Commit
cb79c62c
authored
Jan 07, 2021
by
Ivaria
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Slash command arguments can now be properly quoted
parent
81185938
Changes
2
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
35 additions
and
1 deletion
+35
-1
VuhDoToolbox.lua
VuhDoToolbox.lua
+34
-1
changelog.txt
changelog.txt
+1
-0
No files found.
VuhDoToolbox.lua
View file @
cb79c62c
...
...
@@ -311,7 +311,7 @@ function VUHDO_textParse(aString)
aString
=
gsub
(
aString
,
" "
,
" "
);
end
return
VUHDO_splitString
(
aString
,
" "
);
return
VUHDO_splitString
Quoted
(
aString
);
end
...
...
@@ -337,6 +337,39 @@ end
function
VUHDO_splitStringQuoted
(
aText
)
local
tSplit
=
{};
local
tPrevToken
,
tQuoteToken
;
for
tToken
in
string.gmatch
(
aText
,
"%S+"
)
do
local
tStartQuote
=
string.match
(
tToken
,
[[^(['"])]]
);
local
tEndQuote
=
string.match
(
tToken
,
[[(['"])$]]
);
if
tStartQuote
and
not
tEndQuote
and
not
tQuoteToken
then
tPrevToken
=
tToken
;
tQuoteToken
=
tStartQuote
;
elseif
tPrevToken
and
tQuoteToken
==
tEndQuote
then
tToken
=
tPrevToken
..
' '
..
tToken
;
tPrevToken
=
nil
;
tQuoteToken
=
nil
;
elseif
tPrevToken
then
tPrevToken
=
tPrevToken
..
' '
..
tToken
;
end
if
not
tPrevToken
then
tToken
=
string.gsub
(
tToken
,
[[^(['"])]]
,
""
);
tToken
=
string.gsub
(
tToken
,
[[(['"])$]]
,
""
);
table.insert
(
tSplit
,
tToken
);
end
end
return
tSplit
;
end
-- returns true if player currently is in a battleground
local
tType
;
function
VUHDO_isInBattleground
()
...
...
changelog.txt
View file @
cb79c62c
...
...
@@ -10,6 +10,7 @@ Known issues:
Bugfixes:
-- Slash command arguments can now be properly quoted
Improvements:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment