Skip to content

Commit c3fd768

Browse files
committed
fix: regex in transient-init-value to include newlines
1 parent b4b5cc2 commit c3fd768

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lisp/transient.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3893,7 +3893,7 @@ Call `transient-default-value' but because that is a noop for
38933893
(case-fold-search nil)
38943894
(regexp (if (slot-exists-p obj 'argument-regexp)
38953895
(oref obj argument-regexp)
3896-
(format "\\`%s\\(.*\\)" (oref obj argument)))))
3896+
(format "\\`%s\\([^z-a]*\\)\\'" (oref obj argument)))))
38973897
(if (memq multi-value '(t rest))
38983898
(cdr (assoc argument value))
38993899
(let ((match (lambda (v)

0 commit comments

Comments
 (0)