Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support PCRE #29

Closed
lochv opened this issue Apr 30, 2020 · 1 comment
Closed

Support PCRE #29

lochv opened this issue Apr 30, 2020 · 1 comment

Comments

@lochv
Copy link

lochv commented Apr 30, 2020

Hi,

Some rule canot compile with regexp.Compile() (PCRE error)

	var list []AppRegexp

	for _, regexString := range s {

		// Split version detection
		splitted := strings.Split(regexString, "\\;")

		regex, err := regexp.Compile(splitted[0]) //here
		if err != nil {
			// ignore failed compiling for now
			// log.Printf("warning: compiling regexp for failed: %v", regexString, err)
		}
@rverton
Copy link
Owner

rverton commented Apr 30, 2020

Hi,
there standard lib does not support it, so I cant offer a simple solution here.

If you have any suggestions, feel free to reopen this issue.

Greetings,
Robin

@rverton rverton closed this as completed Apr 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants