* lisp/org/org-element.el (org-element--get-node-properties):
Escape literal `+`.
* lisp/org/org-persist.el (org-persist-load:index):
Replace line-start with string-start when the latter is meant.
(property-value (match-string-no-properties 3)))
(cond
((and (plist-member properties property-name-symbol)
- (string-match-p "+$" property-name))
+ (string-match-p "\\+$" property-name))
(let ((val (plist-get properties property-name-symbol)))
(if (listp val)
(setq properties
(mapc (lambda (collection) (org-persist--add-to-index collection 'hash)) org-persist--index)
(setq org-persist--index nil)
(when (file-exists-p org-persist-directory)
- (dolist (file (directory-files org-persist-directory 'absolute "^[^.][^.]"))
+ (dolist (file (directory-files org-persist-directory 'absolute
+ "\\`[^.][^.]"))
(if (file-directory-p file)
(delete-directory file t)
(delete-file file))))