Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WX-1462 POSIX-flavored sub() #7374

Merged
merged 9 commits into from
Feb 27, 2024
Merged

WX-1462 POSIX-flavored sub() #7374

merged 9 commits into from
Feb 27, 2024

Conversation

jgainerdewar
Copy link
Contributor

@jgainerdewar jgainerdewar commented Feb 24, 2024

Assume POSIX-flavored regex for WDL >=1.1, Java-flavor for <=1.0

@jgainerdewar jgainerdewar marked this pull request as ready for review February 26, 2024 18:53
@jgainerdewar jgainerdewar requested a review from a team as a code owner February 26, 2024 18:53
) { (input, pattern, replace) =>
ErrorOr(
EvaluatedValue(WomString(
RE2JPattern
Copy link
Contributor

Choose a reason for hiding this comment

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

handy! thanks google

import wom.expression.NoIoFunctionSet
import wom.values.WomString

class ValueEvaluatorsSpec extends AnyFlatSpec with CromwellTimeoutSpec with Matchers {
Copy link
Contributor

Choose a reason for hiding this comment

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

thanks for adding these tests

Copy link
Contributor

@THWiseman THWiseman left a comment

Choose a reason for hiding this comment

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

LGTM! Nice find with the regex library, and thanks for the thorough testing into both the past and future WDL versions.

@jgainerdewar jgainerdewar merged commit a29fdf8 into develop Feb 27, 2024
35 checks passed
@jgainerdewar jgainerdewar deleted the jgd_WX-1462_sub branch February 27, 2024 18:03
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.

None yet

3 participants