mirror of
https://github.com/github/codeql.git
synced 2026-08-03 17:03:02 +02:00
13 lines
447 B
Ruby
13 lines
447 B
Ruby
module Foo
|
|
def bar(x)
|
|
# Run the /a+$/ regex on the input x.
|
|
match = x.match(/a+$/)
|
|
end
|
|
|
|
protected
|
|
def baz(x)
|
|
match = x.match(/a+$/)
|
|
|
|
match2 = x.match(/(AA|BB)(AA|BB)(AA|BB)(AA|BB)(AA|BB)(AA|BB)(AA|BB)(AA|BB)(AA|BB)(AA|BB)(AA|BB)(AA|BB)(AA|BB)(AA|BB)(AA|BB)(AA|BB)(AA|BB)(AA|BB)(AA|BB)(AA|BB)(AA|BB)(AA|BB)(AA|BB)(AA|BB)(AA|BB)(AA|BB)(AA|BB)(AA|BB)(AA|BB)(AA|BB)(AA|BB)(AA|BB)(AA|BB)(AA|BB)(AA|BB)C.*Y$/)
|
|
end
|
|
end |