Browse files

allow numbers in tags

  • Loading branch information...
1 parent 5d8a9ad commit 9063d4941de731664c2d6dea3b0be6d33ba8e283 @timcharper committed Aug 11, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 vimpulse-surround.el
View
2 vimpulse-surround.el
@@ -81,7 +81,7 @@ It triggers `vimpulse-change'. Nothing to see here, move along.")
(defun vimpulse-surround-read-tag ()
(let* ((input (read-from-minibuffer "<" "" vimpulse-surround-read-tag-keymap))
- (_ (string-match "\\([a-z-]+\\)\\(.*?\\)[>]*$" input))
+ (_ (string-match "\\([a-z0-9-]+\\)\\(.*?\\)[>]*$" input))
(tag (match-string 1 input))
(rest (match-string 2 input)))
(cons (format "<%s%s>" tag rest) (format "</%s>" tag))))

0 comments on commit 9063d49

Please sign in to comment.