Use kleingrep's regex engine instead of stdlib #1

Merged
Rockingcool merged 8 commits from useMyEngine into master 2025-04-24 21:20:41 -05:00
6 changed files with 22 additions and 11 deletions
Showing only changes of commit 06fab2292c - Show all commits

View File

@@ -88,7 +88,7 @@ func loadConfig(configFilename string) (stack.Stack[regColor], error) {
// returned.
regColorStack := stack.NewStack[regColor](len(strings.Split(string(configFile), "\n"))) // The stack will have the same size as the number of lines in the file
for _, item := range tempMapSlice {
re := regex.MustCompile(item.Key.(string), regex.RE_MULTILINE)
re := regex.MustCompile(item.Key.(string), regex.RE_MULTILINE, regex.RE_SINGLE_LINE)
clr, err := newColor(item.Value.(string))
if err != nil {
return *stack.NewStack[regColor](0), err