Commit 484c59f0 authored by julien's avatar julien

closes #184

fix issue when string was empty
parent 5e1eea4f
Pipeline #428 passed with stage
in 3 minutes and 20 seconds
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