diff --git a/src/app/page.tsx b/src/app/page.tsx index cd6f3a3..96f1660 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -10,7 +10,7 @@ import WordDensity from "@/components/WordDensity"; const config = { includeSpaces: true, - charLimit: 500, + charLimit: 1000000, theme: "dark", }; @@ -38,7 +38,7 @@ export default function Home() { const result: any = {}; const inputText = text; - result.charCount = includeSpaces ? inputText.length : inputText.replace(/\s/g, "").length; + result.charCount = !includeSpaces ? inputText.length : inputText.replace(/\s/g, "").length; result.wordCount = (inputText.match(/[a-zA-ZäöüÄÖÜß]+/g) || []).length; result.sentenceCount = (inputText.match(/[\w\s][.?!](?=\s|$)/g) || []).length;