Fix doom-module-from-path on module directories
Allow PATH to be an exact path to a module.
This commit is contained in:
parent
58601488d9
commit
98632fe086
|
@ -132,7 +132,7 @@ This doesn't require modules to be enabled. For enabled modules us
|
|||
(let ((path (or path (FILE!))))
|
||||
(save-match-data
|
||||
(setq path (file-truename path))
|
||||
(when (string-match "/modules/\\([^/]+\\)/\\([^/]+\\)/.*$" path)
|
||||
(when (string-match "/modules/\\([^/]+\\)/\\([^/]+\\)\\(?:/.*\\)?$" path)
|
||||
(when-let* ((category (match-string 1 path))
|
||||
(module (match-string 2 path)))
|
||||
(cons (doom-keyword-intern category)
|
||||
|
|
Loading…
Reference in New Issue
Block a user