Skip to content

Commit

Permalink
Replace line endings to work on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
TWiStErRob committed Aug 2, 2022
1 parent b0576af commit 1e7eaf2
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ class ViolationTestResources(
"""(?<=\\`)C:\\\\Users\\\\TWiStEr\\\\AppData\\\\Local\\\\Temp\\\\junit12252005098066695430((?:\\\\.+)+)(?=\\`)""".toRegex(),
Regex.escapeReplacement(rootProject.absolutePath.replace("\\", "\\\\")) + "$1"
)
// The XSL transformation will produce system-specific separators
// (on CI/Unix this is different than the captured Windows line endings).
.replace("\r\n", System.lineSeparator())

/**
* @warning DO NOT EDIT (https://youtrack.jetbrains.com/issue/IDEA-171699)
Expand Down Expand Up @@ -76,6 +79,9 @@ class ViolationTestResources(
"""(?<=")file:/C:/Users/TWiStEr/AppData/Local/Temp/junit12252005098066695430((?:/.+)+)(?=")""".toRegex(),
Regex.escapeReplacement(rootProject.toURI().toString().removeSuffix("/")) + "$1"
)
// The XSL transformation will produce system-specific separators
// (on CI/Unix this is different than the captured Windows line endings).
.replace("\r\n", System.lineSeparator())
}

companion object {
Expand Down

0 comments on commit 1e7eaf2

Please sign in to comment.