diff --git a/src/main/java/cz/cvut/kbss/termit/service/IdentifierResolver.java b/src/main/java/cz/cvut/kbss/termit/service/IdentifierResolver.java index 232f5b7ef..fda72edb0 100644 --- a/src/main/java/cz/cvut/kbss/termit/service/IdentifierResolver.java +++ b/src/main/java/cz/cvut/kbss/termit/service/IdentifierResolver.java @@ -19,6 +19,7 @@ import cz.cvut.kbss.termit.exception.InvalidIdentifierException; import cz.cvut.kbss.termit.exception.TermItException; +import cz.cvut.kbss.termit.util.Configuration; import org.springframework.stereotype.Service; import java.net.URI; @@ -80,6 +81,12 @@ public class IdentifierResolver { Arrays.sort(ILLEGAL_FILENAME_CHARS); } + private final boolean asciiOnlyIdentifiers; + + public IdentifierResolver(Configuration config) { + this.asciiOnlyIdentifiers = config.isAsciiIdentifiers(); + } + /** * Normalizes the specified value which includes: *