fixed JSON-to-Grid only works if there is no newline #1085

This commit is contained in:
SPRINX0\prochazka
2025-04-29 13:26:20 +02:00
parent 2a234f14df
commit ca7ca9da81

View File

@@ -350,7 +350,7 @@ export function shouldOpenMultilineDialog(value) {
}
export function isJsonLikeLongString(value) {
return _isString(value) && value.length > 100 && value.match(/^\s*\{.*\}\s*$|^\s*\[.*\]\s*$/);
return _isString(value) && value.length > 100 && value.match(/^\s*\{.*\}\s*$|^\s*\[.*\]\s*$/m);
}
export function getIconForRedisType(type) {