CodeQL library for Ruby
codeql/ruby-all 0.8.15-dev (changelog, source)
Search

Member predicate RegExpLiteral::hasFreeSpacingFlag

Holds if the regex was specified using the x flag to indicate ‘free-spacing’ mode (also known as ‘extended’ mode), meaning that whitespace and comments in the pattern are ignored. For example:

%r{
  [a-zA-Z_] # starts with a letter or underscore
  \w*       # and then zero or more letters/digits/underscores
}/x
predicate hasFreeSpacingFlag()