label: do not error when using cmd[] for a static label cmd (#396)

This commit is contained in:
Maximilian Seidler 2024-07-04 18:04:45 +02:00 committed by GitHub
parent 5b19c6307a
commit 9737bf6484
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -156,7 +156,7 @@ IWidget::SFormatResult IWidget::formatString(std::string in) {
if (in.starts_with("cmd[") && in.contains("]")) {
// this is a command
CVarList vars(in.substr(4, in.find_first_of(']') - 4));
CVarList vars(in.substr(4, in.find_first_of(']') - 4), 0, ',', true);
for (const auto& v : vars) {
if (v.starts_with("update:")) {