Skip to content

Commit 69e462e

Browse files
committed
Add test case that references an excluded empty matcher group
1 parent 1bebd08 commit 69e462e

File tree

1 file changed

+4
-0
lines changed
  • src/test/java/org/culturegraph/mf/morph/functions

1 file changed

+4
-0
lines changed

src/test/java/org/culturegraph/mf/morph/functions/Regexp.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@
2020
<mm:data source="001." name="subject">
2121
<mm:regexp match=".*" format="resource:P${0}" />
2222
</mm:data>
23+
<mm:data source="001." name="subject">
24+
<mm:regexp match=".*" format="${1}"/>
25+
</mm:data>
2326
<mm:data source="001." name="subject">
2427
<mm:regexp match=".*" />
2528
</mm:data>
@@ -31,6 +34,7 @@
3134
<cgxml:records>
3235
<cgxml:record id="1">
3336
<cgxml:literal name="subject" value="resource:P184000" />
37+
<cgxml:literal name="subject" value="" />
3438
<cgxml:literal name="subject" value="184000" />
3539
</cgxml:record>
3640
</cgxml:records>

0 commit comments

Comments
 (0)