Expand pattern matching to filename & extension - #1977
Conversation
duranb
left a comment
There was a problem hiding this comment.
Can you provide some unit tests for this function?
Added! |
|
Thank you! Is there a case where the pattern needs to match multiple parts of the name? For example, is there a naming convention where the filename could be |
I think multiple parts is a valid case. With this change, a pattern like this I also think its okay that this can potentially ignore the file extension as there's another option specifically for the extension, but maybe we should just condense those two to the same option so it's more clear? |
I believe this would require a change that wraps the string in a
No, I think the separation is good as is. It was just more for me to understand. |
f822008 to
4280aae
Compare
|



This PR is the UI implementation of the
ValueSchemachange here: NASA-AMMOS/plandev-actions#21To handle the change of
patterntoextensionPatternand the inclusion offilenamePattern, theiflogic is slightly changed and a new function that preforms a regex search is added.For more context, see this issue: #1872