Skip to content

Considering dash in variable names#281

Merged
camilamaia merged 1 commit intomasterfrom
279
Sep 29, 2020
Merged

Considering dash in variable names#281
camilamaia merged 1 commit intomasterfrom
279

Conversation

@camilamaia
Copy link
Copy Markdown
Member

Considering dash in variable names

Closes #279

@camilamaia camilamaia requested review from a team as code owners September 27, 2020 23:19
@camilamaia camilamaia self-assigned this Sep 27, 2020
@codecov-commenter
Copy link
Copy Markdown

Codecov Report

Merging #281 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #281   +/-   ##
=======================================
  Coverage   93.81%   93.81%           
=======================================
  Files          19       19           
  Lines         598      598           
=======================================
  Hits          561      561           
  Misses         37       37           
Impacted Files Coverage Δ
scanapi/evaluators/string_evaluator.py 95.65% <ø> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ddd8139...aadad38. Read the comment docs.

class StringEvaluator:
variable_pattern = re.compile(
r"(?P<something_before>\w*)(?P<start>\${)(?P<variable>\w*)(?P<end>})(?P<something_after>\w*)"
r"(?P<something_before>\w*)(?P<start>\${)(?P<variable>[\w|-]*)(?P<end>})(?P<something_after>\w*)"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

When using vars with hyphen (dash) is not being evaluated

3 participants