fix: handle codeimporter URL encoding

This commit is contained in:
jason810496 2024-06-22 23:37:23 +08:00
parent 8a710a5f1a
commit c91bc9dfb5

View file

@ -4,7 +4,7 @@
{{ $startLine = sub $startLine 1 }}
{{ $endLine := .Get "endLine" | default -1 | int }}
{{ $selectedLines := slice }}
{{ with resources.GetRemote ( printf $url ) }}
{{ with resources.GetRemote (urls.Parse $url) }}
{{ $lines := split .Content "\n" }}
{{ $totalLine := $lines | len }}