Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
cbb05dca
Commit
cbb05dca
authored
Jun 12, 2019
by
drew cimino
Committed by
Stan Hu
Jun 13, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Disable CI variable complex expressions by default
parent
0a70ba17
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
4 deletions
+4
-4
lib/gitlab/ci/pipeline/expression/lexeme/matches.rb
lib/gitlab/ci/pipeline/expression/lexeme/matches.rb
+1
-1
lib/gitlab/ci/pipeline/expression/lexeme/pattern.rb
lib/gitlab/ci/pipeline/expression/lexeme/pattern.rb
+1
-1
lib/gitlab/ci/pipeline/expression/lexer.rb
lib/gitlab/ci/pipeline/expression/lexer.rb
+1
-1
lib/gitlab/ci/pipeline/expression/parser.rb
lib/gitlab/ci/pipeline/expression/parser.rb
+1
-1
No files found.
lib/gitlab/ci/pipeline/expression/lexeme/matches.rb
View file @
cbb05dca
...
...
@@ -36,7 +36,7 @@ module Gitlab
private
def
ci_variables_complex_expressions?
Feature
.
enabled?
(
:ci_variables_complex_expressions
,
default_enabled:
true
)
Feature
.
enabled?
(
:ci_variables_complex_expressions
)
end
end
end
...
...
lib/gitlab/ci/pipeline/expression/lexeme/pattern.rb
View file @
cbb05dca
...
...
@@ -34,7 +34,7 @@ module Gitlab
end
def
self
.
eager_matching_with_escape_characters?
Feature
.
enabled?
(
:ci_variables_complex_expressions
,
default_enabled:
true
)
Feature
.
enabled?
(
:ci_variables_complex_expressions
)
end
end
end
...
...
lib/gitlab/ci/pipeline/expression/lexer.rb
View file @
cbb05dca
...
...
@@ -73,7 +73,7 @@ module Gitlab
end
def
available_lexemes
Feature
.
enabled?
(
:ci_variables_complex_expressions
,
default_enabled:
true
)
?
NEW_LEXEMES
:
LEXEMES
Feature
.
enabled?
(
:ci_variables_complex_expressions
)
?
NEW_LEXEMES
:
LEXEMES
end
end
end
...
...
lib/gitlab/ci/pipeline/expression/parser.rb
View file @
cbb05dca
...
...
@@ -13,7 +13,7 @@ module Gitlab
end
def
tree
if
Feature
.
enabled?
(
:ci_variables_complex_expressions
,
default_enabled:
true
)
if
Feature
.
enabled?
(
:ci_variables_complex_expressions
)
rpn_parse_tree
else
reverse_descent_parse_tree
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment