branch: elpa/toc-org
commit af1ffb17c2526a4d2a0b0fbf48c5b703c6e48e86
Author: JAremko <[email protected]>
Commit: JAremko <[email protected]>

    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)")
 

Reply via email to