summaryrefslogtreecommitdiff
path: root/bog.el
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2015-08-13 00:23:08 -0400
committerKyle Meyer <kyle@kyleam.com>2015-08-13 00:23:08 -0400
commitffc15b9138b66c1f00284181a4ef9eeaf9c3ac06 (patch)
tree3a0f93931ff5e1efe06e5f13b49799ceb8808f97 /bog.el
parent2df81a94b718544b8c621d59ce84bdca35d18ae6 (diff)
downloadbog-ffc15b9138b66c1f00284181a4ef9eeaf9c3ac06.tar.gz
bog-citekey-p: Use string, not line, bounds
Diffstat (limited to 'bog.el')
-rw-r--r--bog.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/bog.el b/bog.el
index 9d61c23..59b90d4 100644
--- a/bog.el
+++ b/bog.el
@@ -357,7 +357,7 @@ word constituents."
(defun bog-citekey-p (text)
"Return non-nil if TEXT matches `bog-citekey-format'."
(let (case-fold-search)
- (string-match-p (format "^%s$" bog-citekey-format) text)))
+ (string-match-p (format "\\`%s\\'" bog-citekey-format) text)))
(defun bog-all-citekeys ()
"Return all citekeys in notes."