Skip to content

Commit cab91f5

Browse files
committed
Trim url pasted
1 parent c6c881f commit cab91f5

File tree

1 file changed

+1
-1
lines changed
  • src/app/components/limit/modify/form

1 file changed

+1
-1
lines changed

src/app/components/limit/modify/form/url.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ const handlePaste = async (protocolRef: Ref<string>, pathItemsRef: Ref<UrlPathIt
5555

5656
let url = await clipboardy.read(), protocol = Protocol.ALL
5757

58-
url = decodeURI(url)
58+
url = decodeURI(url)?.trim()
5959
if (url.startsWith(Protocol.HTTP)) {
6060
protocol = Protocol.HTTP
6161
url = url.substring(Protocol.HTTP.length)

0 commit comments

Comments
 (0)