diff options
author | drew cimino <dcimino@gitlab.com> | 2019-06-14 16:25:02 -0400 |
---|---|---|
committer | drew cimino <dcimino@gitlab.com> | 2019-06-14 17:58:42 -0400 |
commit | 396348dd175d70f9cb547f1e037a9b303e1a93aa (patch) | |
tree | 047f658d7224cc32c897df1469d06c2f3f40b8a8 /lib | |
parent | ad722a4e1f588382f5c5c1848c0502864993c7e7 (diff) | |
download | gitlab-ce-396348dd175d70f9cb547f1e037a9b303e1a93aa.tar.gz |
Return boolean from Lexeme::Matches#evaluateboolean-values-from-matches-operator
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gitlab/ci/pipeline/expression/lexeme/matches.rb | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/lib/gitlab/ci/pipeline/expression/lexeme/matches.rb b/lib/gitlab/ci/pipeline/expression/lexeme/matches.rb index d7f47c0e7e6..942e4e55323 100644 --- a/lib/gitlab/ci/pipeline/expression/lexeme/matches.rb +++ b/lib/gitlab/ci/pipeline/expression/lexeme/matches.rb @@ -13,16 +13,6 @@ module Gitlab regexp = @right.evaluate(variables) regexp.scan(text.to_s).any? - - if ci_variables_complex_expressions? - # return offset of first match, or nil if no matches - if match = regexp.scan(text.to_s).first - text.to_s.index(match) - end - else - # return true or false - regexp.scan(text.to_s).any? - end end def self.build(_value, behind, ahead) @@ -32,12 +22,6 @@ module Gitlab def self.precedence 10 # See: https://ruby-doc.org/core-2.5.0/doc/syntax/precedence_rdoc.html end - - private - - def ci_variables_complex_expressions? - Feature.enabled?(:ci_variables_complex_expressions) - end end end end |