In CAP messages, handle the last arg as a list of capabilities

Instead of just one. This fixes the issue of the "trailing whitespace" since we
now split it on ' '

Fix #3442
This commit is contained in:
louiz’
2020-08-16 16:05:15 +02:00
parent df2fe0bc4b
commit b98434b5d0
2 changed files with 17 additions and 11 deletions
+3
View File
@@ -28,6 +28,9 @@ TEST_CASE("String split")
CHECK(splitted.size() == 2);
CHECK(splitted[0] == "");
CHECK(splitted[1] == "a");
splitted = utils::split("multi-prefix ", ' ');
CHECK(splitted[0] == "multi-prefix");
CHECK(splitted.size() == 1);
}
TEST_CASE("tolower")