Skip to content

Commit

Permalink
Make sure we get the actual module name even when having double exten…
Browse files Browse the repository at this point in the history
…sions like .info.yml
  • Loading branch information
arnested committed Feb 10, 2020
1 parent a1c77dc commit ee1a24c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drupal-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -752,7 +752,7 @@ the location of DRUPAL_ROOT."
(string= module-version "VERSION"))
(setq module-version version))
(puthash (expand-file-name (file-name-directory module)) `((drupal-module . ,(file-name-nondirectory
(file-name-sans-extension module)))
(file-name-sans-extension (file-name-sans-extension module))))
(drupal-version . ,version)
(drupal-module-name . ,module-name)
(drupal-module-version . ,module-version)
Expand Down

0 comments on commit ee1a24c

Please sign in to comment.