summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2014-12-09 00:13:06 -0500
committerKyle Meyer <kyle@kyleam.com>2014-12-09 00:13:06 -0500
commit9c4ae54b1fadd2644aeafdc85bbbd8084b7a9f45 (patch)
treef99fce41c49130f388f8b75fc9c81b308a203864
parente90f9ca45f324f59bfabc501e7d65e0bab8a6add (diff)
downloadbog-9c4ae54b1fadd2644aeafdc85bbbd8084b7a9f45.tar.gz
bog-citekey-p: Return string-match-p result directly
-rw-r--r--bog.el5
1 files changed, 2 insertions, 3 deletions
diff --git a/bog.el b/bog.el
index 5f7fee0..b2709ee 100644
--- a/bog.el
+++ b/bog.el
@@ -287,9 +287,8 @@ be preceded by a characters in `bog-allowed-before-citekey'."
it)))
(defun bog-citekey-p (text)
- "Does TEXT match `bog-citekey-format'?"
- (and (string-match-p (format "^%s$" bog-citekey-format) text)
- t))
+ "Return non-nil if TEXT matches `bog-citekey-format'."
+ (string-match-p (format "^%s$" bog-citekey-format) text))
(defvar bog--all-citekeys nil)
(defun bog-all-citekeys ()