Skip to content
This repository was archived by the owner on Sep 8, 2023. It is now read-only.

Commit 2a9c92d

Browse files
authored
Merge pull request #805 from nextcloud/bugfix/noid/fix-leading-and-trailing-spaces
2 parents 42caf68 + 74296de commit 2a9c92d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ReferenceList.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ export default {
7575
})
7676
},
7777
resolve() {
78-
const match = (new RegExp(URL_PATTERN).exec(this.text))
78+
const match = (new RegExp(URL_PATTERN).exec(this.text.trim()))
7979
if (this.limit === 1 && match) {
8080
return axios.get(generateOcsUrl('references/resolve', 2) + `?reference=${encodeURIComponent(match[0])}`)
8181
}

0 commit comments

Comments
 (0)