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

Function isTrashClass

lib/html.js:22–28  ·  view source on GitHub ↗
(className)

Source from the content-addressed store, hash-verified

20const TRASH_HTML_CLASSES = /^(text-|color-|flex-|float-|v-|ember-|d-|border-)/
21
22function isTrashClass(className) {
23 if (!className) return true
24 if (/\d/.test(className)) return true
25 if (TRASH_HTML_CLASSES.test(className)) return true
26 if (/(:|__)/.test(className)) return true
27 return false
28}
29
30function filterClassValue(value) {
31 return (value || '')

Callers 2

html_test.jsFile · 0.90
filterClassValueFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected