Commit f4e21850 authored by Felix Paul Kühne's avatar Felix Paul Kühne

Improve decrapification

parent 43562c77
......@@ -33,6 +33,8 @@
if (string == nil)
return nil;
string = [string stringByDeletingPathExtension];
static NSArray *ignoredWords = nil;
if (!ignoredWords)
ignoredWords = [[NSArray alloc] initWithObjects:
......@@ -121,7 +123,7 @@ static inline NSNumber *numberFromThreeChars(char high, char mid, char low)
{
if (!string)
return nil;
NSString *str = [string lowercaseString];
NSString *str = [[string lowercaseString] stringByDeletingPathExtension];
NSUInteger stringLength = [str length];
if (stringLength < 6)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment