Updates
This commit is contained in:
@@ -34,7 +34,7 @@ export default function grabParsedValue({
|
||||
: null;
|
||||
|
||||
if (typeof newValue == "undefined") return;
|
||||
if (typeof newValue == "object" && !newValue) newValue = "";
|
||||
if (typeof newValue == "object" && !newValue) newValue = null;
|
||||
|
||||
const htmlRegex = /<[^>]+>/g;
|
||||
|
||||
@@ -73,20 +73,11 @@ export default function grabParsedValue({
|
||||
}
|
||||
}
|
||||
|
||||
if (typeof newValue === "string" && newValue.match(/^null$/i)) {
|
||||
newValue = {
|
||||
toSqlString: function () {
|
||||
return "NULL";
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
if (typeof newValue === "string" && !newValue.match(/./i)) {
|
||||
newValue = {
|
||||
toSqlString: function () {
|
||||
return "NULL";
|
||||
},
|
||||
};
|
||||
if (
|
||||
typeof newValue === "string" &&
|
||||
(newValue.match(/^null$/i) || !newValue.match(/./i))
|
||||
) {
|
||||
newValue = null;
|
||||
}
|
||||
|
||||
return newValue;
|
||||
|
||||
Reference in New Issue
Block a user