Documentation
¶
Overview ¶
Package utils provides utility functions for docmgr.
The Slugify function converts arbitrary strings into filesystem-friendly slugs suitable for use in filenames and directory names.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Slugify ¶
Slugify converts an arbitrary string into a filesystem-friendly slug: - lowercases - replaces any non [a-z0-9] with '-' - collapses consecutive '-' - trims leading/trailing '-'
func SlugifyTitleForTicket ¶ added in v0.0.7
SlugifyTitleForTicket generates a slug from a title while avoiding duplicating the ticket identifier. If the title begins with the ticket identifier (a common pattern like "MEN-1234: Title"), the ticket prefix and any separators are removed before slugifying. When the stripped title becomes empty, the ticket identifier itself is slugified as a fallback.
Types ¶
This section is empty.