Skip to content

Commit b644478

Browse files
Update src/MauiNativePdfView/Abstractions/PdfSource.cs
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 63cee4a commit b644478

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/MauiNativePdfView/Abstractions/PdfSource.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public abstract class PdfSource
4646
// Asset prefix
4747
if (trimmedValue.StartsWith("asset://", StringComparison.OrdinalIgnoreCase))
4848
{
49-
return new AssetPdfSource(trimmedValue.Substring("asset://".Length));
49+
return new AssetPdfSource(trimmedValue["asset://".Length..]);
5050
}
5151

5252
// File URI

0 commit comments

Comments
 (0)