Skip to content

Commit 97dd618

Browse files
committed
Add is_contained_in() as alias for in() Fix conditional. (#235)
1 parent 7e16cfa commit 97dd618

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -645,7 +645,13 @@ Executes the functions if/unless the field value does not match the regular expr
645645

646646
#### `in`
647647

648-
Executes the functions if/unless the field value is contained in the value of the other field.
648+
Executes the functions if/unless the field value [is contained in](https://perldoc.perl.org/perlop#Smartmatch-Operator) the value of the other field.
649+
650+
_Also aliased as [`is_contained_in`](#is_contained_in)._
651+
652+
#### `is_contained_in`
653+
654+
_Alias for [`in`](#in)._
649655

650656
## Xtext
651657

metafix/src/main/java/org/metafacture/metafix/FixConditional.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,12 @@ public boolean test(final Metafix metafix, final Record record, final List<Strin
8989
);
9090
}
9191
},
92+
is_contained_in {
93+
@Override
94+
public boolean test(final Metafix metafix, final Record record, final List<String> params, final Map<String, String> options) {
95+
return in.test(metafix, record, params, options);
96+
}
97+
},
9298

9399
all_match {
94100
@Override

0 commit comments

Comments
 (0)