Skip to content

Commit afb51ee

Browse files
committed
fix(threat-intel): restore export on collapseWhitespace
Adapters in the RSS/STIX/TAXII (elastic#287205) and vendor_api (elastic#287206) slices import collapseWhitespace from content/text.ts. The content-parsing rewrite made it a private const, which breaks those imports once this PR merges. It's a plain string utility with real external callers, not part of the parsing-architecture change, so restore the export.
1 parent 5f9b3b5 commit afb51ee

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • x-pack/solutions/security/plugins/security_solution/server/threat_intel/content

x-pack/solutions/security/plugins/security_solution/server/threat_intel/content/text.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ interface SectionState {
7070
}
7171

7272
/** Collapses visible whitespace into the storage representation. */
73-
const collapseWhitespace = (input: string): string => input.replace(/\s+/g, ' ').trim();
73+
export const collapseWhitespace = (input: string): string => input.replace(/\s+/g, ' ').trim();
7474

7575
const pushChildren = (stack: SerializeStep[], element: Element): void => {
7676
const children = Array.from(element.childNodes);

0 commit comments

Comments
 (0)