Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions cloud-sync.js
Original file line number Diff line number Diff line change
Expand Up @@ -740,6 +740,13 @@ function openReportModal() {
// hand-edited files ever matter.
export function parseMsProjectXml(xml) {
const tag = (block, name) => {
// False positive for the non-literal RegExp SAST rule: `name` is only ever
// a hardcoded literal tag from this function ('UID', 'Name', 'OutlineLevel',
// 'PercentComplete', ...), never user input, so the constructed pattern is
// fixed. The `[^<]*` body is a single linear character-class star (no
// nested/overlapping quantifiers), so it cannot backtrack catastrophically
// even on adversarial `block` input — no ReDoS or regex-injection surface.
// nosemgrep: javascript.lang.security.audit.detect-non-literal-regexp.detect-non-literal-regexp
const m = block.match(new RegExp(`<${name}>([^<]*)</${name}>`));
return m ? m[1].trim() : '';
};
Expand Down
10 changes: 5 additions & 5 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"fuzz": "node --test tests/fuzz/*.mjs"
},
"dependencies": {
"@hono/node-server": "^1.19.14",
"@hono/node-server": "^2.0.12",
"hono": "^4.12.27"
},
"devDependencies": {
Expand Down
91 changes: 0 additions & 91 deletions pnpm-lock.yaml

This file was deleted.

Loading