commit | fc38d42f41d0971e898fb199a0042841d47b51ba | [log] [tgz] |
---|---|---|
author | Marc Kupietz <kupietz@ids-mannheim.de> | Sun Mar 03 13:05:27 2024 +0100 |
committer | Marc Kupietz <kupietz@ids-mannheim.de> | Sun Mar 03 13:05:27 2024 +0100 |
tree | d8a68f4aa69ed34cb582ff430b6a3cdfe223052f | |
parent | 33669f7a90f667c6fc5d498b2808520e65ea921e [diff] |
Make sigle pattern option compatible (contains match) Change-Id: I3f6eb30786849f81a1d2a33a9b75e9cac4f7e165
diff --git a/app/src/main/kotlin/de/ids_mannheim/korapxmltools/KorapXml2Conllu.kt b/app/src/main/kotlin/de/ids_mannheim/korapxmltools/KorapXml2Conllu.kt index e0d876a..add1669 100644 --- a/app/src/main/kotlin/de/ids_mannheim/korapxmltools/KorapXml2Conllu.kt +++ b/app/src/main/kotlin/de/ids_mannheim/korapxmltools/KorapXml2Conllu.kt
@@ -192,7 +192,7 @@ doc.documentElement.normalize() val docId: String = doc.documentElement.getAttribute("docid") - if (siglePattern != null && !docId.matches(Regex(siglePattern!!))) { + if (siglePattern != null && !Regex(siglePattern!!).containsMatchIn(docId)) { return@forEach } // LOGGER.info("Processing file: " + zipEntry.getName())