Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/rorschach.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Rebert <github@chrisrebert.com>2016-01-31 11:26:07 +0300
committerChris Rebert <github@chrisrebert.com>2016-01-31 11:26:07 +0300
commit41bd2a422a46a471a1e57e13f47019bd350c26fb (patch)
tree019eccc30fbce8f900f027a3f15f7570594c257e
parenta20c7bea04bdaafd57b02eb0f921eeb640127f9f (diff)
Ignore underscores in filenames when checking whether they equal "newfile"
Refs https://github.com/twbs/bootstrap/pull/19057
-rw-r--r--src/main/scala/com/getbootstrap/rorschach/auditing/AddedFilesAuditor.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/scala/com/getbootstrap/rorschach/auditing/AddedFilesAuditor.scala b/src/main/scala/com/getbootstrap/rorschach/auditing/AddedFilesAuditor.scala
index 05ae8d3..8bec7c6 100644
--- a/src/main/scala/com/getbootstrap/rorschach/auditing/AddedFilesAuditor.scala
+++ b/src/main/scala/com/getbootstrap/rorschach/auditing/AddedFilesAuditor.scala
@@ -23,7 +23,7 @@ object AddedFilesAuditor {
private def auditFilenames(filepaths: Set[String]): Seq[String] = {
val filenames = filepaths.map{ filepath => {
- filepath.onlyFilename.withoutExtension.replaceAllLiterally("-", "").replaceAllLiterally(" ", "").asciiLowerCased
+ filepath.onlyFilename.withoutExtension.replaceAllLiterally("-", "").replaceAllLiterally("_", "").replaceAllLiterally(" ", "").asciiLowerCased
}}
if (filenames.contains("newfile")) {
Seq(filenameMessage)