Commit 750bb9ce authored by Bogdan Popa's avatar Bogdan Popa

fix elm-sort-imports regex

parent 2f7f0c3e
...@@ -443,10 +443,10 @@ Runs `elm-reactor' first." ...@@ -443,10 +443,10 @@ Runs `elm-reactor' first."
(interactive) (interactive)
(save-excursion (save-excursion
(goto-char (point-min)) (goto-char (point-min))
(re-search-forward "^import" nil t) (re-search-forward "^import " nil t)
(beginning-of-line) (beginning-of-line)
(let ((beg (point)) (let ((beg (point))
(_ (while (re-search-forward "^import" nil t) (end-of-line))) (_ (while (re-search-forward "^import " nil t) (end-of-line)))
(end (point))) (end (point)))
(sort-lines nil beg end)))) (sort-lines nil beg end))))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment