diff options
| author | Adam Soltys <[email protected]> | 2023-05-10 14:05:26 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2023-05-10 14:05:26 -0700 |
| commit | 7974e1565a0dc3a1809d84fefc1feb90b0d83383 (patch) | |
| tree | 2593b330cac19745671d3fc142985b2df959d46a /src/components/Code.svelte | |
| parent | 092fe68e09434ed290bcb0e1b8076d3852901e5f (diff) | |
| download | coinos-ui-7974e1565a0dc3a1809d84fefc1feb90b0d83383.tar.gz coinos-ui-7974e1565a0dc3a1809d84fefc1feb90b0d83383.zip | |
update docs
Diffstat (limited to 'src/components/Code.svelte')
| -rw-r--r-- | src/components/Code.svelte | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/Code.svelte b/src/components/Code.svelte index a718c5ed..dd0cecf2 100644 --- a/src/components/Code.svelte +++ b/src/components/Code.svelte @@ -1,5 +1,5 @@ <script> - import { copy } from '$lib/utils'; + import { copyNoNewlines as copy } from '$lib/utils'; import { Icon } from '$comp'; import samples from '$lib/samples'; export let sample; @@ -11,7 +11,7 @@ </div> <button class="ml-auto my-auto invert opacity-90" - on:click={() => copy(samples[sample].replace(/^\s+/gm, '').replace(/\n/g, ''))} + on:click={() => copy(samples[sample])} ><Icon icon="copy" style="w-10 max-w-none" /></button > </div> |
