Skip to content

Commit da70abe

Browse files
committed
- [X] Need better regex for psci/--compute-module-name! - CLOSE #4
1 parent a82bcec commit da70abe

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

psci.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ Assumes the location of the modules is the project root folder."
138138
"Compute the current file's module name."
139139
(save-excursion
140140
(goto-char (point-min))
141-
(let ((regexp "^module \\\([a-zA-Z0-9\\\.]+\\\) "))
141+
(let ((regexp "^module\\s-+\\\([a-zA-Z0-9\\\.]+\\\)\\b"))
142142
(search-forward-regexp regexp)
143143
(match-string 1))))
144144

todo.org

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@
66
- [ ] Add `:s import` binding
77
- [ ] Add `:s loaded` binding
88
- [ ] Make psci's default completion work
9-
* IN-PROGRESS 0.0.6 [80%]
9+
* IN-PROGRESS 0.0.6 [100%]
1010
- [X] Prepare backlog
1111
- [X] Update version
1212
- [X] Add TOC to the README.org (Cheers to org-toc!)
1313
- [X] `M-x psci` errors if there is no .psci file. - CLOSE #3
14-
- [ ] Need better regex for `psci/--compute-module-name!` - #4
14+
- [X] Need better regex for `psci/--compute-module-name!` - CLOSE #4
1515
* DONE 0.0.5 [100%]
1616
CLOSED: [2014-10-30 Thu 18:17]
1717
- [X] Prepare backlog

0 commit comments

Comments
 (0)