Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Rule 981244 will trigger false positives in certain common scearios #36

Closed
OrySegal opened this Issue · 2 comments

2 participants

@OrySegal

The following section of the regular expression:

(?:[\"'´’‘]\s*?(x?or|div|like|between|and)[\w\s-]+\s*?[+<>=(),-]\s*?[\d\"'´’‘])

Will generate false positives on strings such as:

  • "orca-1"
  • 'ornament=1' *"divider-1"

In general, JSON objects would have a high chance of containing such strings, for example:

{"name":"divider-1"}

@rcbarnett
Owner

Updated the regex in 2.2.8 to include word boudaries -

(?:[\"'´’‘]\s*?\b(x?or|div|like|between|and)\b\s*?[+<>=(),-]\s*?[\d\"'´’‘])

@rcbarnett rcbarnett closed this
@OrySegal
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.