From 252ccd1b62e9a571ed1d797a5d5c96205f62b371 Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Thu, 7 Mar 2024 10:51:20 +0100 Subject: show error if author name is still the default --- src/main/kotlin/Main.kt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/kotlin/Main.kt b/src/main/kotlin/Main.kt index a472205..1064ba3 100644 --- a/src/main/kotlin/Main.kt +++ b/src/main/kotlin/Main.kt @@ -191,6 +191,9 @@ fun parseChanges( changePattern.matchMatcher(line) { val author = group("author") + if (author == "your_name_here") { + error("no author name") + } val text = group("text") if (illegalStartPattern.matcher(text).matches()) { error("illegal start at change: '$text'") -- cgit