Skip to content

Commit

Permalink
compress command regex
Browse files Browse the repository at this point in the history
  • Loading branch information
lunakv committed Nov 13, 2023
1 parent 2f637d9 commit 32cea1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ var (
//Pulling all regex here *should* make it all compile once and then be left alone

//Stuff pared from main.go
botCommandRegex = regexp.MustCompile(`[!&]([^=!&?[)][^!&?[)]+)\.\s|[!&]([^=!&?[)][^!&?[)]+)|\[\[(.*?)\]\]`)
botCommandRegex = regexp.MustCompile(`[!&]([^=!&?[)][^!&?[)]+)(?:\.\s)?|\[\[(.*?)\]\]`)
singleQuotedWord = regexp.MustCompile(`^(?:"\w+"|'\w+')$`)
nonTextRegex = regexp.MustCompile(`^\W+$`)
wordEndingInBang = regexp.MustCompile(`!["'] |\n+`)
Expand Down

0 comments on commit 32cea1c

Please sign in to comment.