mirror of
https://github.com/aspnet/JavaScriptServices.git
synced 2025-12-25 02:57:31 +00:00
Further stylistic tweaks
This commit is contained in:
@@ -24,9 +24,14 @@ namespace Microsoft.AspNetCore.SpaServices
|
||||
string routeKey,
|
||||
RouteValueDictionary values,
|
||||
RouteDirection routeDirection)
|
||||
=> !HasDotInLastSegment(values[_clientRouteTokenName] as string ?? string.Empty);
|
||||
{
|
||||
return !HasDotInLastSegment(values[_clientRouteTokenName] as string ?? string.Empty);
|
||||
}
|
||||
|
||||
private bool HasDotInLastSegment(string uri)
|
||||
=> uri.IndexOf('.', uri.LastIndexOf('/') + 1) >= 0;
|
||||
{
|
||||
var lastSegmentStartPos = uri.LastIndexOf('/');
|
||||
return uri.IndexOf('.', lastSegmentStartPos + 1) >= 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user