Commit 484c59f0 authored by julien's avatar julien
Browse files

closes #184

fix issue when string was empty
parent 5e1eea4f
export function cleanPseudoContent(el, trim = "\"' ") {
if(el == null) return;
return el
.replace(new RegExp(`^[${trim}]+`), "")
.replace(new RegExp(`[${trim}]+$`), "")
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment