mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2026-04-25 17:16:00 +03:00
[PR #1733] Fix comma-separated argument parsing for single Chrome flags with internal commas #2992
Labels
No labels
expected: maybe someday
expected: next release
expected: release after next
expected: unlikely unless contributed
good first ticket
help wanted
pull-request
scope: all users
scope: windows users
size: easy
size: hard
size: medium
size: medium
status: backlog
status: blocked
status: done
status: idea-phase
status: needs followup
status: wip
status: wontfix
touches: API/CLI/Spec
touches: configuration
touches: data/schema/architecture
touches: dependencies/packaging
touches: docs
touches: js
touches: views/replayers/html/css
why: correctness
why: functionality
why: performance
why: security
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ArchiveBox#2992
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Original Pull Request: https://github.com/ArchiveBox/ArchiveBox/pull/1733
State: closed
Merged: No
Summary
getEnvArray()to correctly handle single Chrome flags that contain internal commas (e.g.,--user-data-dir=/path/with,comma/dir)getEnvArrayfunction for consistency with other environment helpersTest plan
getEnvArrayreturns single-element array for--user-data-dir=/path,with,commasgetEnvArraystill splits correctly for--arg1,--arg2,--arg3'["--arg1", "--arg2=val,ue"]''a,b,c'🤖 Generated with Claude Code
Summary by cubic
Fixed getEnvArray to treat single Chrome flags with internal commas as one argument instead of splitting. Added JSDoc explaining parse order, exported getEnvArray, and recommended using JSON arrays for complex Chrome args.
Written for commit
25b6fa5cba. Summary will update on new commits.