docs: replace nbsp with a space when copying (#230)
This commit is contained in:
parent
15c42f9ee0
commit
583bf60ce8
|
|
@ -15,7 +15,7 @@ const { copy, copied } = useClipboard()
|
||||||
|
|
||||||
const codeRef = ref<HTMLElement>()
|
const codeRef = ref<HTMLElement>()
|
||||||
async function copyCode() {
|
async function copyCode() {
|
||||||
await copy(codeRef.value?.innerText ?? '')
|
await copy(codeRef.value?.innerText.replace(/\u00A0/g, " ") ?? '')
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user