We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3c48177 commit c320147Copy full SHA for c320147
src/createParser.ts
@@ -40,6 +40,23 @@ export function createParser(props: ExpressionParserConstructor = {}) {
40
return false
41
}
42
},
43
+ is_email: (_, value: any) => {
44
+ try {
45
+ return !!value?.match(/^[^\s@]+@[^\s@]+\.[^\s@]+$/g);
46
+ } catch (error) {
47
+ return false;
48
+ }
49
+ },
50
+ is_html_empty: (_, value: any) => {
51
52
+ if (!value) return true;
53
+ if (value === "<div></div>") return true;
54
+ if (value === "<span></span>") return true;
55
56
57
58
59
60
// NUMBER ==================================================================================
61
ceil: (_, value: number) => Math.ceil(value),
62
round: (_, value: number) => Math.round(value),
0 commit comments