#43 Critical cache bug with arrayOfCaptureComponentsMatchedByReg

RegexKitLite 3.1
closed-fixed
5
2009-11-04
2009-11-01
No

This very simple test case demonstrates the issue:
NSString *regexString = @"(\\d+)[^-]*-(\\d+)";
NSString *test = @"2-120";

NSArray *result1 = [test arrayOfCaptureComponentsMatchedByRegex:regexString];
NSArray *result2 = [test arrayOfCaptureComponentsMatchedByRegex:regexString];
NSLog(@"Results: %@ vs %@",
result1, result2);

result1 and result2 should be the same (of course), but the output is:
Results: (
(
"2-120",
2,
120
)
) vs (
)

which means that the second call returned no results

Discussion

  • John Engelhart

    John Engelhart - 2009-11-04

    Fixed in RegexKitLite 3.2.

     
  • John Engelhart

    John Engelhart - 2009-11-04
    • status: open --> closed-fixed
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks