Misc_Helpers: f_str_split(): Fix parse with len(delimiter) > 1

Change-Id: I1ac53635deea82a501f2a8c7a94faf501ddf7afd
This commit is contained in:
Pau Espin 2024-05-07 20:04:10 +02:00 committed by pespin
parent a4b72ce8f4
commit f0862ed483
1 changed files with 1 additions and 1 deletions

View File

@ -94,7 +94,7 @@ function f_str_split(charstring str, charstring delim := "\n") return ro_charstr
if (delim_pos > pos) {
parts := parts & { substr(str, pos, delim_pos - pos) };
}
pos := delim_pos + 1;
pos := delim_pos + lengthof(delim);
}
return parts;
}