@@ -57,7 +57,8 @@ export const contains: IUnboundedLexeme = R.merge({
57
57
op . toString ( ) . indexOf ( exp . toString ( ) ) !== - 1
58
58
) ,
59
59
subType : RelationalOperator . Contains ,
60
- regexp : / ^ ( ( c o n t a i n s ) (?: \s | $ ) ) / i
60
+ regexp : / ^ ( ( c o n t a i n s ) (?: \s | $ ) ) / i,
61
+ regexpMatch : 2
61
62
} , LEXEME_BASE ) ;
62
63
63
64
export const equal : IUnboundedLexeme = R . merge ( {
@@ -67,19 +68,22 @@ export const equal: IUnboundedLexeme = R.merge({
67
68
op === exp
68
69
) ,
69
70
subType : RelationalOperator . Equal ,
70
- regexp : / ^ ( = | ( e q ) (?: \s | $ ) ) / i
71
+ regexp : / ^ ( = | ( e q ) (?: \s | $ ) ) / i,
72
+ regexpMatch : 2
71
73
} , LEXEME_BASE ) ;
72
74
73
75
export const greaterOrEqual : IUnboundedLexeme = R . merge ( {
74
76
evaluate : relationalEvaluator ( ( [ op , exp ] ) => op >= exp ) ,
75
77
subType : RelationalOperator . GreaterOrEqual ,
76
- regexp : / ^ ( > = | ( g e ) (?: \s | $ ) ) / i
78
+ regexp : / ^ ( > = | ( g e ) (?: \s | $ ) ) / i,
79
+ regexpMatch : 2
77
80
} , LEXEME_BASE ) ;
78
81
79
82
export const greaterThan : IUnboundedLexeme = R . merge ( {
80
83
evaluate : relationalEvaluator ( ( [ op , exp ] ) => op > exp ) ,
81
84
subType : RelationalOperator . GreaterThan ,
82
- regexp : / ^ ( > | ( g t ) (?: \s | $ ) ) / i
85
+ regexp : / ^ ( > | ( g t ) (?: \s | $ ) ) / i,
86
+ regexpMatch : 2
83
87
} , LEXEME_BASE ) ;
84
88
85
89
const DATE_OPTIONS : IDateValidation = {
@@ -100,23 +104,27 @@ export const dateStartsWith: IUnboundedLexeme = R.merge({
100
104
normalizedOp . indexOf ( normalizedExp ) === 0 ;
101
105
} ) ,
102
106
subType : RelationalOperator . DateStartsWith ,
103
- regexp : / ^ ( ( d a t e s t a r t s w i t h ) (?: \s | $ ) ) / i
107
+ regexp : / ^ ( ( d a t e s t a r t s w i t h ) (?: \s | $ ) ) / i,
108
+ regexpMatch : 2
104
109
} , LEXEME_BASE ) ;
105
110
106
111
export const lessOrEqual : IUnboundedLexeme = R . merge ( {
107
112
evaluate : relationalEvaluator ( ( [ op , exp ] ) => op <= exp ) ,
108
113
subType : RelationalOperator . LessOrEqual ,
109
- regexp : / ^ ( < = | ( l e ) (?: \s | $ ) ) / i
114
+ regexp : / ^ ( < = | ( l e ) (?: \s | $ ) ) / i,
115
+ regexpMatch : 2
110
116
} , LEXEME_BASE ) ;
111
117
112
118
export const lessThan : IUnboundedLexeme = R . merge ( {
113
119
evaluate : relationalEvaluator ( ( [ op , exp ] ) => op < exp ) ,
114
120
subType : RelationalOperator . LessThan ,
115
- regexp : / ^ ( < | ( l t ) (?: \s | $ ) ) / i
121
+ regexp : / ^ ( < | ( l t ) (?: \s | $ ) ) / i,
122
+ regexpMatch : 2
116
123
} , LEXEME_BASE ) ;
117
124
118
125
export const notEqual : IUnboundedLexeme = R . merge ( {
119
126
evaluate : relationalEvaluator ( ( [ op , exp ] ) => op !== exp ) ,
120
127
subType : RelationalOperator . NotEqual ,
121
- regexp : / ^ ( ! = | ( n e ) (?: \s | $ ) ) / i
128
+ regexp : / ^ ( ! = | ( n e ) (?: \s | $ ) ) / i,
129
+ regexpMatch : 2
122
130
} , LEXEME_BASE ) ;
0 commit comments