Skip to content

Commit

Permalink
fix: remove apostrophe from example message
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolasfara committed Aug 29, 2023
1 parent 48cbb93 commit 17458b2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ open class ConventionalCommitsExtension(private val project: Project) {
var failureMessage: String? = """
${TextColors.red("The commit message does not meet the Conventional Commit standard")}
An example of a valid message is:
feat(login): add the 'remember me' button
feat(login): add the remember me button
More details at: https://www.conventionalcommits.org/en/v1.0.0/#summary
""".trimIndent()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class ConventionalCommitsTest : WordSpec({
.readText() shouldContain "Commit message meets Conventional Commit standards..."
// Test if `'` character is correctly escaped into `\x27`
projectDirectory.resolve(".git/hooks/commit-msg")
.readText() shouldContain "feat(login): add the \\\\x27remember me\\\\x27 button"
.readText() shouldContain "feat(login): add the remember me button"
}
}

Expand Down Expand Up @@ -171,7 +171,7 @@ class ConventionalCommitsTest : WordSpec({
.readText() shouldContain "Commit message meets Conventional Commit standards..."
// Test if `'` character is correctly escaped into `\x27`
projectDirectory.resolve(".git/hooks/commit-msg")
.readText() shouldContain "feat(login): add the \\\\x27remember me\\\\x27 button"
.readText() shouldContain "feat(login): add the remember me button"
}
}
}
Expand Down

0 comments on commit 17458b2

Please sign in to comment.