Skip to content

Support Slack Names with hyphens#581

Merged
dmorgan-fa merged 1 commit into
mainfrom
dcm/support-slack-names-with-hyphens
Jun 26, 2026
Merged

Support Slack Names with hyphens#581
dmorgan-fa merged 1 commit into
mainfrom
dcm/support-slack-names-with-hyphens

Conversation

@dmorgan-fa

Copy link
Copy Markdown
Contributor

Currently the the delimiters causes a split on a hyphenated name:

  name.gsub( /\d+/,"").split(Regexp.union(delimiters))
=> ["Cherice", "Sackey-", "Nelson"]

This results in @cherice.sackey-.nelson, while we want @cherice.sackey-nelson.

I messed around with the Regex and couldn't get a nice (or robust) solution, so going with the easier option for now.

Currently the the delimiters causes a split on a hyphenated name:

```
  name.gsub( /\d+/,"").split(Regexp.union(delimiters))
=> ["Cherice", "Sackey-", "Nelson"]
```

This results in `@cherice.sackey-.nelson`, while we want
`@cherice.sackey-nelson`.

I messed around with the Regex and couldn't get a nice (or robust)
solution, so going with the easier option for now.
@dmorgan-fa dmorgan-fa requested a review from a team as a code owner June 26, 2026 13:56
@dmorgan-fa dmorgan-fa requested a review from elipinska June 26, 2026 13:56
@dmorgan-fa dmorgan-fa merged commit a69736e into main Jun 26, 2026
6 checks passed
@dmorgan-fa dmorgan-fa deleted the dcm/support-slack-names-with-hyphens branch June 26, 2026 15:58
@sonarqubecloud

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants