Skip to content

Commit

Permalink
Update docstring for zk-id-regexp to provide more guidance
Browse files Browse the repository at this point in the history
Removing `\\(...\\)` is not strictly needed, but since both `zk-link-regexp` and
`zk-file-name-regexp` add capture groups themselves, it results in a cleaner
regexp.
  • Loading branch information
boyechko committed Jul 15, 2023
1 parent 345b82a commit a99dfc5
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions zk.el
Original file line number Diff line number Diff line change
Expand Up @@ -123,10 +123,14 @@ If you change this value, set `zk-id-regexp' so that
the zk IDs can be found."
:type 'string)

(defcustom zk-id-regexp "\\([0-9]\\{12\\}\\)"
(defcustom zk-id-regexp "[0-9]\\{12\\}"
"The regular expression used to search for zk IDs.
Set it so that it matches strings generated with
`zk-id-format'."
`zk-id-format'. The expression should not capture any
explicitly numbered groups.
See `zk-file-name-regexp' and `zk-link-regexp' functions for
how this regexp is used."
:type 'regexp)

(defcustom zk-tag-regexp "\\s#[a-zA-Z0-9]\\+"
Expand Down

0 comments on commit a99dfc5

Please sign in to comment.