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