Skip to content

Commit

Permalink
simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
mykola-mokhnach committed Oct 28, 2024
1 parent f8819eb commit bbc376d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions WebDriverAgentMac/WebDriverAgentLib/Utilities/FBXPath.m
Original file line number Diff line number Diff line change
Expand Up @@ -110,11 +110,10 @@ - (NSString *)fb_toFixedXPathQuery
NSRegularExpression *regex = [NSRegularExpression regularExpressionWithPattern:replacePattern
options:NSRegularExpressionCaseInsensitive
error:nil];
NSString *result = [regex stringByReplacingMatchesInString:self
return [regex stringByReplacingMatchesInString:self
options:0
range:NSMakeRange(0, [self length])
withTemplate:@"$1.$2"];
return result;
}

@end
Expand Down

0 comments on commit bbc376d

Please sign in to comment.