zammad/zammad

View on GitHub
app/frontend/shared/utils/wordFilter.ts

Summary

Maintainability
A
3 hrs
Test Coverage

Function wordFilter has 87 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export const wordFilter = (editor: Element) => {
  let content = editor.innerHTML

  // Word comments like conditional comments etc
  content = content.replace(/<!--[\s\S]+?-->/gi, '')
Severity: Major
Found in app/frontend/shared/utils/wordFilter.ts - About 3 hrs to fix

    There are no issues that match your filters.

    Category
    Status