Skip to content

Commit 83bf4f3

Browse files
committed
Implemented new splicing syntax over Substring()
1 parent 5b59ede commit 83bf4f3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

OnTopic.Editor.AspNetCore/Components/FilePathViewComponent.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ public string GetPath(string attributeKey, FilePathAttributeTopicViewModel optio
203203
);
204204
}
205205
var startTopicWebPath = startTopic.GetWebPath().Replace("/Root/", "/");
206-
relativePath = endTopic?.GetWebPath().Substring(Math.Max(startTopicWebPath.Length-1,0));
206+
relativePath = endTopic?.GetWebPath()[Math.Max(startTopicWebPath.Length-1, 0)..];
207207
}
208208

209209
/*------------------------------------------------------------------------------------------------------------------------

0 commit comments

Comments
 (0)