mirror of
https://github.com/revarbat/BOSL2.git
synced 2025-08-30 03:29:56 +02:00
Improved regressions error reporting.
This commit is contained in:
@@ -734,7 +734,7 @@ function str_pad(str,length,char=" ",left=false) =
|
||||
// can be any string.
|
||||
function str_replace_char(str,char,replace) =
|
||||
assert(is_str(str))
|
||||
assert(is_str(char) && len(char)==1, "Search pattern 'char' must be a a single character string")
|
||||
assert(is_str(char) && len(char)==1, "Search pattern 'char' must be a single character string")
|
||||
assert(is_str(replace))
|
||||
str_join([for(c=str) c==char ? replace : c]);
|
||||
|
||||
|
Reference in New Issue
Block a user