mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-07-22 20:04:26 +02:00
global-functions: $CharacterReplace: use same condition in loop
This commit is contained in:
parent
b1b53e3d0d
commit
16f04ee7ee
1 changed files with 1 additions and 1 deletions
|
@ -51,7 +51,7 @@
|
|||
:return $String;
|
||||
}
|
||||
|
||||
:while ($String ~ $ReplaceFrom) do={
|
||||
:while ([ :typeof [ :find $String $ReplaceFrom ] ] != "nil") do={
|
||||
:local Pos [ :find $String $ReplaceFrom ];
|
||||
:set Return ($Return . [ :pick $String 0 $Pos ] . $ReplaceWith);
|
||||
:set String [ :pick $String ($Pos + $Len) 999 ];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue