diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2018-02-27 10:27:22 +0100 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2018-02-27 10:27:22 +0100 |
commit | 85333aed42f504451b69f593b83a25ef0b42434b (patch) | |
tree | 7f1cc18ae0aebc5f462b937276a2677ce4503b9c /lib | |
parent | d3076ff055cc9d713e1df1e272ac79add6dbbd9a (diff) | |
download | gitlab-ce-85333aed42f504451b69f593b83a25ef0b42434b.tar.gz |
Add support for single quoted string in pipeline expressions
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gitlab/ci/pipeline/expression/lexeme/string.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/ci/pipeline/expression/lexeme/string.rb b/lib/gitlab/ci/pipeline/expression/lexeme/string.rb index 6f77d443c3c..486bfaf9017 100644 --- a/lib/gitlab/ci/pipeline/expression/lexeme/string.rb +++ b/lib/gitlab/ci/pipeline/expression/lexeme/string.rb @@ -4,7 +4,7 @@ module Gitlab module Expression module Lexeme class String < Lexeme::Value - PATTERN = /"(?<string>.+?)"/.freeze + PATTERN = /("(?<string>.+?)")|('(?<string>.+?)')/.freeze def initialize(value) @value = value |