From cb64103161b69d59e1efefeb761ac85564c44698 Mon Sep 17 00:00:00 2001 From: Md Mushfiqur Rahim <20mahin2020@gmail.com> Date: Mon, 18 May 2026 13:00:15 +0600 Subject: [PATCH] fix(aliases): preserve trailing double quotes in als output (#13744) Co-authored-by: Codebuff Contributor --- plugins/aliases/cheatsheet.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/aliases/cheatsheet.py b/plugins/aliases/cheatsheet.py index 61bf5f956..d4e35c4ee 100644 --- a/plugins/aliases/cheatsheet.py +++ b/plugins/aliases/cheatsheet.py @@ -6,7 +6,9 @@ import argparse def parse(line): left = line[0:line.find('=')].strip() - right = line[line.find('=')+1:].strip('\'"\n ') + right = line[line.find('=')+1:].strip('\n ') + if len(right) >= 2 and right[0] == right[-1] and right[0] in '\'"': + right = right[1:-1] try: cmd = next(part for part in right.split() if len([char for char in '=<>' if char in part])==0) except StopIteration: