Slug should not start or end with a hyphen

Description

If a page title starts or ends with a non-alphanumeric character, the generated slug will begin or end with a hyphen, which is not ideal. For example:

...would be slugified as:

whereas the desired slug would be:

Environment

None

Assignee

Unassigned

Reporter

Seb Duggan

Labels

None

Accepted

Yes

Fix versions

Affects versions

Priority

Low
Configure