Skip to content
This repository was archived by the owner on Aug 18, 2020. It is now read-only.

Commit 2d68314

Browse files
committed
Fix backslash escape regex in SbtFile
Damn you regex.....
1 parent 8c88672 commit 2d68314

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

project/SbtFile.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,11 @@ class SbtFile(val name: String, val version: String, val plugins: List[Plugin],
5757
val sbtContent = new StringBuilder("// GENERATED FILE USING THE CHAT OVERFLOW PLUGIN FRAMEWORK\n")
5858

5959
if (name != "") {
60-
sbtContent append "\nname := \"%s\"".format(name.replaceAll("\\", ""))
60+
sbtContent append "\nname := \"%s\"".format(name.replaceAll("\\\\", ""))
6161
}
6262

6363
if (version != "") {
64-
sbtContent append "\nversion := \"%s\"".format(version.replaceAll("\\", ""))
64+
sbtContent append "\nversion := \"%s\"".format(version.replaceAll("\\\\", ""))
6565
}
6666

6767
for (plugin <- plugins) {

0 commit comments

Comments
 (0)