Skip to content

Commit

Permalink
- [X] Need better regex for psci/--compute-module-name! - CLOSE #4
Browse files Browse the repository at this point in the history
  • Loading branch information
ardumont committed Jan 14, 2015
1 parent a82bcec commit da70abe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion psci.el
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ Assumes the location of the modules is the project root folder."
"Compute the current file's module name."
(save-excursion
(goto-char (point-min))
(let ((regexp "^module \\\([a-zA-Z0-9\\\.]+\\\) "))
(let ((regexp "^module\\s-+\\\([a-zA-Z0-9\\\.]+\\\)\\b"))
(search-forward-regexp regexp)
(match-string 1))))

Expand Down
4 changes: 2 additions & 2 deletions todo.org
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@
- [ ] Add `:s import` binding
- [ ] Add `:s loaded` binding
- [ ] Make psci's default completion work
* IN-PROGRESS 0.0.6 [80%]
* IN-PROGRESS 0.0.6 [100%]
- [X] Prepare backlog
- [X] Update version
- [X] Add TOC to the README.org (Cheers to org-toc!)
- [X] `M-x psci` errors if there is no .psci file. - CLOSE #3
- [ ] Need better regex for `psci/--compute-module-name!` - #4
- [X] Need better regex for `psci/--compute-module-name!` - CLOSE #4
* DONE 0.0.5 [100%]
CLOSED: [2014-10-30 Thu 18:17]
- [X] Prepare backlog
Expand Down

0 comments on commit da70abe

Please sign in to comment.