[PR #911] Added TAG_SEPARATOR_PATTERN option for splitting tags #2801

Closed
opened 2026-03-01 18:00:47 +03:00 by kerem · 0 comments
Owner

Original Pull Request: https://github.com/ArchiveBox/ArchiveBox/pull/911

State: closed
Merged: Yes


Summary

This PR adds the TAG_SEPARATOR_PATTERN option. This option is a regex character class that will be used when splitting the tag string.
It defaults to [,] which will split tags on commas. Splitting tags is currently done on commas so this will be backwards compatible and should not introduce breaking changes.

Some Examples:

  • Splitting on spaces: TAG_SEPARATOR_PATTERN="[ ]"
  • Splitting on spaces and commas: TAG_SEPARATOR_PATTERN="[ ,]"
  • Splitting on spaces, commas, and semicolons: TAG_SEPARATOR_PATTERN="[ ,;]"

  • All previously passing tests still pass.
  • I can give the Wiki text so that the Wiki page for the configuration can be updated with this new option.

Related issues

#725

Changes these areas

  • Bugfixes
  • Feature behavior
  • Command line interface
  • Configuration options
  • Internal architecture
  • Snapshot data layout on disk
**Original Pull Request:** https://github.com/ArchiveBox/ArchiveBox/pull/911 **State:** closed **Merged:** Yes --- <!-- IMPORTANT: Do not submit PRs with only formatting / PEP8 / line length changes. --> # Summary This PR adds the ```TAG_SEPARATOR_PATTERN``` option. This option is a regex character class that will be used when splitting the tag string. It defaults to ```[,]``` which will split tags on commas. Splitting tags is currently done on commas so this will be backwards compatible and should not introduce breaking changes. Some Examples: * Splitting on spaces: ```TAG_SEPARATOR_PATTERN="[ ]"``` * Splitting on spaces and commas: ```TAG_SEPARATOR_PATTERN="[ ,]"``` * Splitting on spaces, commas, and semicolons: ```TAG_SEPARATOR_PATTERN="[ ,;]"``` --- * All previously passing tests still pass. * I can give the Wiki text so that the Wiki page for the configuration can be updated with this new option. <!--e.g. This PR fixes ABC or adds the ability to do XYZ...--> # Related issues #725 <!-- e.g. #123 or Roadmap goal # https://github.com/pirate/ArchiveBox/wiki/Roadmap --> # Changes these areas - [ ] Bugfixes - [ ] Feature behavior - [ ] Command line interface - [x] Configuration options - [ ] Internal architecture - [ ] Snapshot data layout on disk
kerem 2026-03-01 18:00:47 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ArchiveBox#2801
No description provided.