mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-12-11 02:04:38 +08:00
Slight improvement to the deserialize regex and its test output.
This commit is contained in:
@@ -172,7 +172,7 @@ sub deserialize_list {
|
||||
[^\\,]* # Same as above.
|
||||
)* # Repeat zero of more times.
|
||||
)
|
||||
(?:,|\z) # Comma dividing elements or absolute end of the string.
|
||||
,? # Comma dividing elements or absolute end of the string.
|
||||
/sxg;
|
||||
|
||||
# Last element will always be empty. Flaw in the regex.
|
||||
|
||||
Reference in New Issue
Block a user