docs: replace nbsp with a space when copying (#230)

This commit is contained in:
itsTPM 2023-12-30 13:44:32 +03:00 committed by GitHub
parent 15c42f9ee0
commit 583bf60ce8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -15,7 +15,7 @@ const { copy, copied } = useClipboard()
const codeRef = ref<HTMLElement>()
async function copyCode() {
await copy(codeRef.value?.innerText ?? '')
await copy(codeRef.value?.innerText.replace(/\u00A0/g, " ") ?? '')
}
</script>