We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 06654ae commit 7ba8f03Copy full SHA for 7ba8f03
1 file changed
src/SimpleW/SimpleW/Route.cs
@@ -36,7 +36,7 @@ public partial class Route {
36
/// <summary>
37
/// Return true if RawURL ending with "/"
38
/// </summary>
39
- public bool hasEndingSlash => RawUrl.EndsWith("/");
+ public bool hasEndingSlash => !string.IsNullOrEmpty(RawUrl) && RawUrl[^1] == '/';
40
41
42
/// The ControllerMethodExecutor
0 commit comments