MCPcopy Create free account
hub / github.com/microsoft/SandDance / validateExpression

Function validateExpression

docs/app/js/sanddance-app.js:12518–12526  ·  view source on GitHub ↗
(ex)

Source from the content-addressed store, hash-verified

12516 }
12517}
12518function validateExpression(ex) {
12519 if (ex.operator === "isnullorEmpty") {
12520 ex.errorMessage = null;
12521 return;
12522 }
12523 const s = (0, _searchTerm.getText)(ex);
12524 if (s.length === 0) ex.errorMessage = (0, _language.strings).labelRequired;
12525 else ex.errorMessage = null;
12526}
12527function clearExpressionValidation(ex) {
12528 if (ex.operator === "isnullorEmpty") {
12529 ex.errorMessage = null;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected