branch: elpa/toc-org
commit f345f768cbfd8c72c3521fe002ab430568311c9f
Merge: 72883a08b0 af1ffb17c2
Author: Sergei Nosov <[email protected]>
Commit: Sergei Nosov <[email protected]>
Merge pull request #13 from JAremko/master
use better toc-org-special-chars-regexp
---
toc-org.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/toc-org.el b/toc-org.el
index 1052a3cf99..30bb306f55 100644
--- a/toc-org.el
+++ b/toc-org.el
@@ -61,7 +61,7 @@ files on GitHub)"
"Regexp to find states on the line")
(defconst toc-org-links-regexp "\\[\\[\\(.*?\\)\\]\\[\\(.*?\\)\\]\\]"
"Regexp to find states on the line")
-(defconst toc-org-special-chars-regexp "[][~`!@#$%^&*()+={}|\:;\"'<,>.?/]"
+(defconst toc-org-special-chars-regexp "[^[:alnum:]_-]"
"Regexp with the special characters (which are omitted in hrefs
by GitHub)")