fix(aliases): preserve trailing double quotes in als output (#13744)

Co-authored-by: Codebuff Contributor <contributor@codebuff.com>
This commit is contained in:
Md Mushfiqur Rahim
2026-05-18 13:00:15 +06:00
committed by GitHub
parent 0eecd2821e
commit cb64103161

View File

@@ -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: