From 6a860633b29aedea29fb20e5d1899547b1dabaa0 Mon Sep 17 00:00:00 2001 From: stuzer05 Date: Mon, 4 Dec 2023 12:02:07 +0200 Subject: [PATCH] Improve str length tool --- src/views/StrLength.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/views/StrLength.vue b/src/views/StrLength.vue index 3e6226e..dbc94c3 100644 --- a/src/views/StrLength.vue +++ b/src/views/StrLength.vue @@ -12,7 +12,8 @@

- +
+
@@ -41,6 +42,8 @@ export default { return this.toolData.data.length; case 'words': return this.toolData.data.trim().split(/\s+/).length; + case 'lines': + return this.toolData.data.split('\n').length; } }, },