diff options
author | Christian Hesse <mail@eworm.de> | 2019-07-16 12:46:33 +0200 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2019-07-16 12:46:33 +0200 |
commit | 16f04ee7ee83755b7405835d343f9e056986173b (patch) | |
tree | 6b990b2343fdddfcb489950e2006fd6a34208ffe | |
parent | b1b53e3d0de3e82703afba4c03a532aa8d86e2d9 (diff) |
global-functions: $CharacterReplace: use same condition in loop
-rw-r--r-- | global-functions | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/global-functions b/global-functions index f6d1e70..b8afcd4 100644 --- a/global-functions +++ b/global-functions @@ -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 ]; |