Skip to content

Commit

Permalink
Cleanup non-standard version numbers
Browse files Browse the repository at this point in the history
Fix Jinja2 doesn't have a built-in
regex_replace filter.Use replace filter
with a regular expression.
  • Loading branch information
tpeulen committed Feb 4, 2024
1 parent 96d6795 commit a17a08d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion conda-recipe/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{% set default_version = '0.14.5' %}

{% set raw_version = environ.get('GIT_DESCRIBE_TAG', default_version) %}
{% set sanitized_version = raw_version | regex_replace('[^0-9.]', '') | regex_replace('^v', '') %}
{% set sanitized_version = raw_version | replace('[^0-9.]', '') | replace('^v', '') %}

package:
name: imp.bff
Expand Down

0 comments on commit a17a08d

Please sign in to comment.