MCPcopy Create free account
hub / github.com/code100x/cms / isCommentValid

Function isCommentValid

src/components/comment/CommentInputForm.tsx:47–49  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

45 const isAllSpaces = (str: string): boolean => (/^\s*$/).test(str);
46
47 const isCommentValid = () => {
48 return !isAllSpaces(commentText);
49 };
50
51 // Function to adjust the height of the textarea
52 const adjustTextareaHeight = () => {

Callers 1

CommentInputFormFunction · 0.85

Calls 1

isAllSpacesFunction · 0.85

Tested by

no test coverage detected