fix(aliases): preserve trailing double quotes in als output (#13744)
Some checks failed
Scorecard supply-chain security / Scorecard analysis (push) Has been cancelled

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
commit cb64103161
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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: