feat: add capture group support in URL fragment for unique tabs #473
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Add support for regex capture groups in URL fragment for the "Unique" tab feature.
Users can now use placeholders like
$1,$2in the URL fragment field when the "Unique" option is enabled, allowing more flexible duplicate tab detection based on extractedURL patterns.
Changes
_processUrlFragment()helper function to process capture group placeholdershandleSetUnique()to use processed fragments for comparisonurl_matcherExample Usage
https://mysite.atlassian.net/browse/([A-Z]+-\d+)https://mysite.atlassian.net/browse/$1This will detect duplicate tabs for the same JIRA ticket (e.g., ABC-123) regardless of query parameters.
Breaking Changes
None - fully backward compatible with existing rules.
Fixes #457