wil-shiftinsert
10/13/2022, 4:08 PM<cfscript>
field = deserializeJson('{
"validation": {
"id": 1180,
"regex": "somestring",
"mask": "",
"size": "",
"maxLength": "100"
}
}');
writeDump(
label="initial value",
var=field.validation.regex
);
writeDump(field.validation.regex === "somestring");
field.validation.regex = "somestring";
writeDump(
label="assigned empty string value",
var=field.validation.regex
);
writeDump(field.validation.regex === "somestring");
</cfscript>
so when doing a strict equality they are not the same. See somestring
here for the example. If we do the same with ACF2021, no problems.
Try it yourself
https://trycf.com/gist/2cd908188eab1e1a4d8460392a5a3a11/acf2021?theme=monokaisteveduke
10/13/2022, 4:23 PMthisOldDave
10/13/2022, 4:26 PM