diff --git a/build.sbt b/build.sbt index 510aabb6..7a837d9c 100644 --- a/build.sbt +++ b/build.sbt @@ -364,7 +364,8 @@ val files = project val files = (base ** (_.isFile)).pair(sbt.io.Path.relativeTo(base)) val lines = files.toList.map(_._2).map { s => val ident = s.replaceAll("[^a-zA-Z0-9_]+", "_") - ident -> s"""val $ident = createUrl("$s")""" + val sanitized = s.replace('\\', '/') + ident -> s"""val $ident = createUrl("$sanitized")""" } val content = s"""package docspell.files