Repository navigation
Fix JSONC inline comments and reject root arrays in MenuModel (#13492, #13493) - #13803
szaidi-code wants to merge 1 commit into
Conversation
Independent community review
Tested: Findings & Feedback:
Testing details
|
|
Thanks @szaidi-code. I read this against The array-root guard is right, and the string-aware scan does fix the inline
#13968 also fixes #13492 and #13493 and keeps the shipped sample extension parsing once its example rows are uncommented. Choosing between these pull requests is the maintainer's call, so this is waiting on them. |
Closes #13492
Closes #13493
Summary
Inline comments (
//or/* */) on items inomarchy-menu.jsoncwere improperly stripped, corrupting URLs or paths containing//, and root JSON arrays could cause TypeError exceptions.Changes
stripJsoncwith character scanning to properly strip inline//and/* */comments without corrupting strings inshell/plugins/menu/MenuModel.js.[].test/shell.d/menu-test.sh.