Mantis - Squeak
Viewing Issue Advanced Details
6841 Collections minor always 01-08-08 22:47 02-06-11 23:48
chl  
leves  
normal  
closed 3.9  
fixed  
none    
none trunk  
0006841: String>>startingAt:match:startingAt: should raise an error for '**' or '*#' - instead returns unexpected results
String>>startingAt:match:startingAt: should raise an error for '**' or '*#' occuring in the invocant. This is also stated in the methods comments. However the condition given is wrong, so the error is not thrown when it should be.
Tiny change in lines 31 and 34 of attached file fixes this.
Regards, Christoph
 startingAt#match#startingAt#.txt [^] (1,906 bytes) 01-08-08 22:47

Notes
(0011642)
chl   
01-08-08 22:48   
unexpected results were e.g.:


'*e' match: 'e'. "true"
'*#' match: 'e'. "false"
'**' match: 'e'. "false"
(0013935)
leves   
11-16-10 05:48   
Fixed in Collections-ul.407.