Skip to content

Commit 3de64f2

Browse files
leMaurclaude
andauthored
fix: resolve CodeQL incomplete-url-substring-sanitization alerts (#33)
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 6e717a0 commit 3de64f2

3 files changed

Lines changed: 7 additions & 7 deletions

File tree

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "livewire-flux-mcp",
3-
"version": "2.1.14",
3+
"version": "2.1.16",
44
"description": "MCP server for Livewire Flux Components documentation",
55
"main": "index.js",
66
"type": "module",

test/integration/server.test.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -101,10 +101,10 @@ describe('FluxDocumentationServer Integration', () => {
101101
const response = await global.fetch('https://fluxui.dev/docs');
102102
const html = await response.text();
103103

104-
// Verify fixture contains expected links
105-
assert.ok(html.includes('https://fluxui.dev/components/button'));
106-
assert.ok(html.includes('https://fluxui.dev/components/input'));
107-
assert.ok(html.includes('https://fluxui.dev/components/modal'));
104+
// Verify fixture contains expected component links (check href attribute to avoid URL substring ambiguity)
105+
assert.ok(html.includes('href="https://fluxui.dev/components/button"'));
106+
assert.ok(html.includes('href="https://fluxui.dev/components/input"'));
107+
assert.ok(html.includes('href="https://fluxui.dev/components/modal"'));
108108

109109
global.fetch = originalFetch;
110110
});

0 commit comments

Comments
 (0)