Skip to content

Conversation

wayne-snyk
Copy link
Contributor

Description:

This PR adds makefile variable detections by updating the base regex used by generateSemiGenericRegex.

The regenerated config is a sizable diff since this is how many of the regex detections are created.

Checklist:

  • Does your PR pass tests?
  • Have you written new tests for your changes?
  • Have you lint your code locally prior to submission?

@@ -19,7 +19,7 @@ const (
identifierSuffix = `)(?:[0-9a-z\-_\t .]{0,20})(?:[\s|']|[\s|"]){0,3}`

// commonly used assignment operators or function call
operator = `(?:=|>|:=|\|\|:|<=|=>|:)`
operator = `(?:=|>|:{1,3}=|\|\|:|<=|=>|:|\?=)`
Copy link
Contributor Author

@wayne-snyk wayne-snyk Jun 9, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This could also be (?:=|>|:+=|\|\|:|<=|=>|:|\?=) for a bit more flexibility with the colons. Let me know if you prefer this to {1,3}.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

operator = `(?:=|>|:{1,3}=|\|\|:|<=|=>|:|\?=)`

is good with me

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

Successfully merging this pull request may close these issues.

2 participants