MCPcopy Index your code
hub / github.com/codeceptjs/CodeceptJS / filterClassValue

Function filterClassValue

lib/html.js:30–35  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

28}
29
30function filterClassValue(value) {
31 return (value || '')
32 .split(/\s+/)
33 .filter(c => c && !isTrashClass(c))
34 .join(' ')
35}
36
37const DROP_TAGS = new Set(['style', 'noscript'])
38const DROP_ATTRS = new Set(['style'])

Callers 2

walkFunction · 0.85
removeNonInteractiveFunction · 0.85

Calls 2

isTrashClassFunction · 0.85
filterMethod · 0.80

Tested by

no test coverage detected