Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🪲 [BUG] - s-split-words splits properly capitalized words like SPARCstation #166

Open
epakai opened this issue Jun 20, 2024 · 0 comments
Labels

Comments

@epakai
Copy link

epakai commented Jun 20, 2024

Description

I have been using s-dashed-words to produce html anchor ids, and I noticed some extra dashes. In particular PCIe became pc-ie, and SPARCstation became spar-cstation. In testing I found the splitting came from s-split-words.

I found #43 where this was implemented. It seems aimed at handling camelCase words that also include all capital words (based on the provided example).

Steps to Reproduce the issue.

  1. Call s-split-words on a partially capitalized single word: (s-split-words "SPARCstation")
  2. Receive back two words: ("SPAR" "Cstation")

Screenshots

No response

Logs

No response

Emacs version

28.1

Emacs running on GUI, Terminal or Daemon?

GUI

OS

Linux

OS Version

No response

@epakai epakai added the bug label Jun 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant