mirror of https://gitee.com/bigwinds/arangodb
issue #282
This commit is contained in:
parent
c3602440d0
commit
d762a5420e
|
@ -1877,11 +1877,11 @@ function getTypedValue (value) {
|
||||||
// fallback: value is a string
|
// fallback: value is a string
|
||||||
value = value + '';
|
value = value + '';
|
||||||
|
|
||||||
if (value.substr(0, 1) == '"') {
|
if (value.substr(0, 1) != '"' || value.substr(-1) != '"') {
|
||||||
if (value.substr(-1) != '"') {
|
|
||||||
alert("You have entered an invalid string value. Please review and adjust it.");
|
alert("You have entered an invalid string value. Please review and adjust it.");
|
||||||
throw "error";
|
throw "error";
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
value = JSON.parse(value);
|
value = JSON.parse(value);
|
||||||
}
|
}
|
||||||
|
@ -1889,7 +1889,6 @@ function getTypedValue (value) {
|
||||||
alert("You have entered an invalid string value. Please review and adjust it.");
|
alert("You have entered an invalid string value. Please review and adjust it.");
|
||||||
throw e;
|
throw e;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue