mirror of
https://github.com/Slug-Boi/cocommit.git
synced 2026-05-13 12:45:47 +00:00
changed the regex to better fit expected format
This commit is contained in:
@@ -52,7 +52,7 @@ func main() {
|
|||||||
// builds the commit message with the selected authors
|
// builds the commit message with the selected authors
|
||||||
var sb strings.Builder
|
var sb strings.Builder
|
||||||
sb.WriteString(string(args[0])+"\n")
|
sb.WriteString(string(args[0])+"\n")
|
||||||
reg, _ := regexp.Compile("([^:]+):(.+)")
|
reg, _ := regexp.Compile("([^:]+):([^:]+)")
|
||||||
|
|
||||||
for _, commiter := range args[1:] {
|
for _, commiter := range args[1:] {
|
||||||
if _, ok := users[commiter]; ok {
|
if _, ok := users[commiter]; ok {
|
||||||
|
|||||||
Reference in New Issue
Block a user