summaryrefslogtreecommitdiff
path: root/s.el
diff options
context:
space:
mode:
authorMagnar Sveen <magnars@gmail.com>2013-08-24 22:25:12 +0200
committerMagnar Sveen <magnars@gmail.com>2013-08-24 22:25:12 +0200
commitf3fe06e782f79211eebf722610bbd9413a12c1c9 (patch)
tree3773a4e480d609502fe27aee7f82cf02c67bb06d /s.el
parent98c095669a96e1a553a089b6647731a32be99453 (diff)
Letters can be neither upper or lower case. Handle it.
Diffstat (limited to 's.el')
-rw-r--r--s.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/s.el b/s.el
index 995f620..3dc88d2 100644
--- a/s.el
+++ b/s.el
@@ -404,7 +404,7 @@ When START is non-nil the search will start at that index."
(defun s-split-words (s)
"Split S into list of words."
(s-split
- "[^[:lower:][:upper:]0-9]+"
+ "[^[:word:]0-9]+"
(let ((case-fold-search nil))
(replace-regexp-in-string
"\\([[:lower:]]\\)\\([[:upper:]]\\)" "\\1 \\2"