mirror of
https://github.com/revarbat/BOSL2.git
synced 2025-08-20 17:11:48 +02:00
Brought slice() in line with select() indexing, without wrapping. Replaced a lot of select() and slice() calls with last(), list_head(), and list_tail() calls.
This commit is contained in:
@@ -335,7 +335,7 @@ function _str_find_last(str,pattern,sindex) =
|
||||
(sindex >=0 ? sindex : undef);
|
||||
|
||||
function _str_find_all(str,pattern) =
|
||||
pattern == "" ? list_range(len(str)) :
|
||||
pattern == "" ? range(len(str)) :
|
||||
[for(i=[0:1:len(str)-len(pattern)]) if (_str_cmp(str,i,pattern)) i];
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user