Skip to content

Commit

Permalink
Replaced deprecated call
Browse files Browse the repository at this point in the history
  • Loading branch information
joeldev committed Oct 11, 2016
1 parent 0ef4b77 commit 3a432da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion JLRoutes/Classes/JLRRouteDefinition.m
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ - (NSString *)variableNameForValue:(NSString *)value

- (NSString *)variableValueForValue:(NSString *)value decodePlusSymbols:(BOOL)decodePlusSymbols
{
NSString *var = [value stringByReplacingPercentEscapesUsingEncoding:NSUTF8StringEncoding];
NSString *var = [value stringByRemovingPercentEncoding];

if (var.length > 1 && [var characterAtIndex:var.length - 1] == '#') {
var = [var substringToIndex:var.length - 1];
Expand Down

0 comments on commit 3a432da

Please sign in to comment.