Skip to content

Commit

Permalink
improved regexp to also parse error messages with single quotes aroun…
Browse files Browse the repository at this point in the history
…d header file name
  • Loading branch information
dennisppaul committed Dec 13, 2024
1 parent 84fc413 commit 78941c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/arduino/builder/internal/detector/detector.go
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,7 @@ func (l *SketchLibrariesDetector) failIfImportedLibraryIsWrong() error {
}

// includeRegexp fixdoc
var includeRegexp = regexp.MustCompile("(?ms)^\\s*#[ \t]*include\\s*[<\"](\\S+)[\">]")
var includeRegexp = regexp.MustCompile(`(?ms)[<"'](\S+)[">']`)

// IncludesFinderWithRegExp fixdoc
func IncludesFinderWithRegExp(source string) string {
Expand Down

0 comments on commit 78941c0

Please sign in to comment.