Skip to content

Commit d095b25

Browse files
committed
lsp-graphql: fix unnecessary changes
1 parent fbe6795 commit d095b25

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clients/lsp-graphql.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ may be activated if appropriate GraphQL content is detected."
5858
(defun lsp-graphql-activate-p (filename &optional _)
5959
"Check if the GraphQL language server should be enabled based on FILENAME."
6060
(let ((target-extensions (mapconcat 'identity lsp-graphql-target-file-extensions "\\|")))
61-
(or (string-match-p (format "\\.%s\\'" target-extensions) filename)
61+
(or (string-match-p (format "\\.\\(?:%s\\)\\'" target-extensions) filename)
6262
(and (apply 'derived-mode-p lsp-graphql-activated-modes)
6363
(not (derived-mode-p 'json-mode))))))
6464

0 commit comments

Comments
 (0)