(str, catchAllAtomDelimiter = " ", parameterMap)
| 14392 | return window[name] |
| 14393 | } |
| 14394 | static formatStr(str, catchAllAtomDelimiter = " ", parameterMap) { |
| 14395 | return str.replace(/{([^\}]+)}/g, (match, path) => { |
| 14396 | const val = parameterMap[path] |
| 14397 | if (val === undefined) return "" |
| 14398 | return Array.isArray(val) ? val.join(catchAllAtomDelimiter) : val |
| 14399 | }) |
| 14400 | } |
| 14401 | static stripHtml(text) { |
| 14402 | return text && text.replace ? text.replace(/<(?:.|\n)*?>/gm, "") : text |
| 14403 | } |
no test coverage detected