mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-05 22:55:58 +00:00
Allow more chars for mimetype
This commit is contained in:
parent
97305d27ff
commit
fbe0c1aec5
@ -27,7 +27,7 @@ object MimeType {
|
|||||||
MimeType("image", partFromString(sub).throwLeft)
|
MimeType("image", partFromString(sub).throwLeft)
|
||||||
|
|
||||||
private[this] val validChars: Set[Char] =
|
private[this] val validChars: Set[Char] =
|
||||||
(('A' to 'Z') ++ ('a' to 'z') ++ ('0' to '9') ++ "*-.").toSet
|
(('A' to 'Z') ++ ('a' to 'z') ++ ('0' to '9') ++ "*-.+").toSet
|
||||||
|
|
||||||
def parse(str: String): Either[String, MimeType] =
|
def parse(str: String): Either[String, MimeType] =
|
||||||
str.indexOf('/') match {
|
str.indexOf('/') match {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user