refactor(clean): removed useless br tags

This commit is contained in:
Corentin Thomasset 2023-04-19 22:44:22 +02:00 committed by Corentin THOMASSET
parent c45bce36f9
commit 74073f5038
13 changed files with 21 additions and 43 deletions

View file

@ -1,9 +1,8 @@
<template>
<n-card>
<n-input v-model:value="text" type="textarea" placeholder="Your text..." rows="5" />
<br />
<br />
<n-space justify="space-around">
<n-space justify="space-around" mt-5>
<n-statistic label="Character count" :value="text.length" />
<n-statistic label="Word count" :value="text === '' ? 0 : text.split(/\s+/).length" />
<n-statistic label="Line count" :value="text === '' ? 0 : text.split(/\r\n|\r|\n/).length" />