From 8bb47f96d8eb11c48bb72cf67b9371faa549249b Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Wed, 12 Aug 2020 16:01:10 -0400 Subject: [PATCH] cli/doctor: fix native json detection --- core/cli/doctor.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/cli/doctor.el b/core/cli/doctor.el index 1d838f844..e7e3fc4c5 100644 --- a/core/cli/doctor.el +++ b/core/cli/doctor.el @@ -62,7 +62,7 @@ in." (when EMACS27+ (print! (start "Checking for great Emacs features...")) (unless (and (functionp 'json-serialize) - (string-match-p "\\<_JSON\\_>" system-configuration-features)) + (string-match-p "\\_" system-configuration-features)) (warn! "Emacs was not built with native JSON support") (explain! "Users will see a substantial performance gain by building Emacs with " "jansson support (i.e. a native JSON library), particularly LSP users. "