[@"foo" hasPrefix: @""] => false
| Originator: | steven | ||
| Number: | rdar://14556776 | Date Originated: | 26-Jul-2013 12:27 AM |
| Status: | Open | Resolved: | |
| Product: | Product Version: | ||
| Classification: | Reproducible: |
Summary:
[@"foo" hasPrefix: @""] => false
Steps to Reproduce:
[@"foo" hasPrefix: @""] => false
Expected Results:
[@"foo" hasPrefix: @""] => true
Actual Results:
[@"foo" hasPrefix: @""] => false
Regression:
[@"foo" hasPrefix: @""] => false
Notes:
[@":(" hasPrefix: @""] => false
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!
added more notes cuz Apple just doesnt get it.
All strings should be considered prefixed with an empty string, because it should follow this pattern:
["foo" hasPrefix: "foo"] => true ["foo" hasPrefix: "fo"] => true ["foo" hasPrefix: "f"] => true ["foo" hasPrefix: ""] => true