From: Eshel Yaron Date: Thu, 15 Aug 2024 07:43:03 +0000 (+0200) Subject: ; Fix regex matching multi-hop Tramp file names X-Git-Tag: v0.3.2~3 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=5954f4f3395d0caa482ea954a017d8b474c78008;p=kubed.git ; Fix regex matching multi-hop Tramp file names * kubed.el (kubed-local-namespace) (kubed-local-context-and-namespace): Tweak regex. --- diff --git a/kubed.el b/kubed.el index a3cdb65..d73c53b 100644 --- a/kubed.el +++ b/kubed.el @@ -2365,7 +2365,7 @@ Optional argument DEFAULT is the minibuffer default argument." (or kubed-list-namespace (nth 3 kubed-display-resource-info) (kubed--static-if (<= 31 emacs-major-version) - (and (string-match "[/:]kubernetes:.*%\\([a-z0-9-]+\\):" + (and (string-match "[/|]kubernetes:.*%\\([a-z0-9-]+\\):" default-directory) (match-string 1 default-directory))) (kubed-current-namespace (or context (kubed-local-context))))) @@ -2383,7 +2383,7 @@ Optional argument DEFAULT is the minibuffer default argument." (let ((context (kubed-current-context))) (cons context (or (kubed--static-if (<= 31 emacs-major-version) - (and (string-match "[/:]kubernetes:.*%\\([a-z0-9-]+\\):" + (and (string-match "[/|]kubernetes:.*%\\([a-z0-9-]+\\):" default-directory) (match-string 1 default-directory))) (kubed-current-namespace context))))))