The `$find` scripting function currently returns "-1" if `needle` is not found in `haystack`. This was based on the return value of the Python `find` method. This is not consistent with other Picard scripting functions, which return "" for a `False` (not found?) condition. For consistency, consider changing the `$find` function to return "" on a "not found" condition.
Have $find return "" rather than "-1" on not found
- Assignee:
-
Bob Swift
- Reporter:
-
Bob Swift
- Votes:
-
1 Vote for this issue - Watchers:
-
2 Start watching this issue
- Created:
- Updated:
| Version | Package |
|---|---|
| 2.3.2 |