only embed signature if its html, otherwise just write it

This commit is contained in:
zefie
2022-02-10 21:44:01 -05:00
parent 56e8fdd215
commit 51a0576a3e
3 changed files with 12 additions and 3 deletions

View File

@@ -30,6 +30,10 @@ class WTVShared {
return true;
}
isHTML(str) {
return /<\s*([^ >]+)[^>]*>.*?<\s*\/\s*\1\s*>/.test(str);
}
returnAbsolutePath(check_path) {
if (check_path.substring(0, 1) != this.path.sep && check_path.substring(1, 1) != ":") {
// non-absolute path, so use current directory as base