mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Better switch value
This commit is contained in:
@ -45,9 +45,7 @@ export function convertValueType(value, type) {
|
|||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|
||||||
type = type.trim().toLowerCase();
|
switch (type.trim().toLowerCase()) {
|
||||||
|
|
||||||
switch (type) {
|
|
||||||
case 'string':
|
case 'string':
|
||||||
case 'str':
|
case 'str':
|
||||||
return String(value);
|
return String(value);
|
||||||
|
Reference in New Issue
Block a user