[FIX] can use t-out with String classes

This commit is contained in:
Bruno Boi
2022-02-08 12:49:10 +01:00
committed by Aaron Bohy
parent 3196b585fd
commit cc8e11c9c9
4 changed files with 54 additions and 4 deletions
+1 -1
View File
@@ -135,7 +135,7 @@ export function safeOutput(value: any): ReturnType<typeof toggler> {
} else if (value instanceof LazyValue) {
safeKey = `lazy_value`;
block = value.evaluate();
} else if (typeof value === "string") {
} else if (value instanceof String || typeof value === "string") {
safeKey = "string_unsafe";
block = text(value);
} else {