wip fix
This commit is contained in:
parent
284fedc5c4
commit
148196f626
|
|
@ -55,16 +55,19 @@ export const EdPropInstanceText: FC<{
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
const unquote = (text: string) => {
|
const unquote = (text: any) => {
|
||||||
const str = text.trim();
|
if (typeof text === "string") {
|
||||||
const first = str[0];
|
const str = text.trim();
|
||||||
|
const first = str[0];
|
||||||
|
|
||||||
if (['"', "'", "`"].includes(first)) {
|
if (['"', "'", "`"].includes(first)) {
|
||||||
if (first === str[str.length - 1]) {
|
if (first === str[str.length - 1]) {
|
||||||
return str.slice(1, -1);
|
return str.slice(1, -1);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
return str;
|
||||||
}
|
}
|
||||||
return str;
|
return "";
|
||||||
};
|
};
|
||||||
|
|
||||||
export function AutoHeightTextarea({
|
export function AutoHeightTextarea({
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue