Skip to content

Commit 2ae6419

Browse files
committed
Allow overriding Bible name
This works for all import formats. When the import format does not provide a Bible name (or a misleading one) and the export format requires one (which is hard to edit later), the System Property `biblemulticonverter.bible.name` can be used to override the bible name, therefore avoiding the need to convert to an intermediate format. Closes #103.
1 parent 3e0a217 commit 2ae6419

File tree

1 file changed

+1
-1
lines changed
  • biblemulticonverter/src/main/java/biblemulticonverter/data

1 file changed

+1
-1
lines changed

biblemulticonverter/src/main/java/biblemulticonverter/data/Bible.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public class Bible {
1616
private final List<Book> books;
1717

1818
public Bible(String name) {
19-
this.name = Utils.validateString("name", name, Utils.NORMALIZED_WHITESPACE_REGEX);
19+
this.name = Utils.validateString("name", System.getProperty("biblemulticonverter.bible.name", name), Utils.NORMALIZED_WHITESPACE_REGEX);
2020
this.books = new ArrayList<Book>();
2121
}
2222

0 commit comments

Comments
 (0)