Skip to content

Commit

Permalink
straight--compute-dependencies: use more forgiving regexp (#683)
Browse files Browse the repository at this point in the history
Tolerate any number of leading semicolons in Package-Requires metadata
  • Loading branch information
progfolio committed Jan 22, 2021
1 parent af56cc7 commit 47dd03d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion straight.el
Original file line number Diff line number Diff line change
Expand Up @@ -4665,7 +4665,7 @@ this run of straight.el)."
;; missing or malformed, we just assume the package
;; has no dependencies.
(let ((case-fold-search t))
(re-search-forward "^;; *Package-Requires *: *"))
(re-search-forward "^;* *Package-Requires *: *"))
(when (looking-at "(")
(straight--process-dependencies
(read (current-buffer)))))))))
Expand Down

0 comments on commit 47dd03d

Please sign in to comment.