@@ -68,7 +68,6 @@ pub enum Operator {
6868 Gte ( TagName , TargetValue ) ,
6969 Lt ( TagName , TargetValue ) ,
7070 Lte ( TagName , TargetValue ) ,
71- Regex ( TagName , TargetValue ) ,
7271 Like ( TagName , TargetValue ) ,
7372 In ( TagName , Vec < TargetValue > ) ,
7473}
@@ -130,7 +129,6 @@ impl Operator {
130129 Operator :: Lt ( ref tag_name, ref tag_value) => format ! ( r#"{}:{{"$lt":{}}}"# , tag_name. to_string( ) , tag_value. to_string( ) ) ,
131130 Operator :: Lte ( ref tag_name, ref tag_value) => format ! ( r#"{}:{{"$lte":{}}}"# , tag_name. to_string( ) , tag_value. to_string( ) ) ,
132131 Operator :: Like ( ref tag_name, ref tag_value) => format ! ( r#"{}:{{"$like":{}}}"# , tag_name. to_string( ) , tag_value. to_string( ) ) ,
133- Operator :: Regex ( ref tag_name, ref tag_value) => format ! ( r#"{}:{{"$regex":{}}}"# , tag_name. to_string( ) , tag_value. to_string( ) ) ,
134132 Operator :: Not ( ref stmt) => format ! ( r#""$not":{}"# , stmt. to_json( true ) ) ,
135133 Operator :: And ( ref operators) => format ! ( "{{{}}}" , join_operator_strings( operators) ) ,
136134 Operator :: Or ( ref operators) => if operators. len ( ) > 0 { format ! ( r#""$or":[{}]"# , join_operator_strings( operators) ) } else { "{}" . to_string ( ) } ,
0 commit comments