MCPcopy Create free account
hub / github.com/TruthHun/BookStack / charClass

Function charClass

static/word2md/mammoth.browser.js:26229–26234  ·  view source on GitHub ↗
(str)

Source from the content-addressed store, hash-verified

26227 attribEnd = charClass(attribEnd)
26228
26229 function charClass (str) {
26230 return str.split('').reduce(function (s, c) {
26231 s[c] = true
26232 return s
26233 }, {})
26234 }
26235
26236 function isRegExp (c) {
26237 return Object.prototype.toString.call(c) === '[object RegExp]'

Callers 1

mammoth.browser.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected