Aug. 23, 2010
1:06 p.m.
O
SLLogMorph>>#testFilter: aMessage | lowerString | lowerString := aMessage value value asLowercase. ^(self searchString asString substrings allSatisfy: [:sub | sub := (sub asLowercase) replaceAll: $_ with: (Character space). ((sub first = $-) and: [(lowerString includesSubString: sub allButFirst) not]) or: [(sub first = $+) and: [lowerString includesSubString: sub allButFirst]] or: [lowerString includesSubString: sub]])
I think you cannot modify the sub block variable in Pharo...
in any blockclosure implementation in fact Stef