Commit 8461f5c
authored
Create llms-txt-validation.js
Fetches /llms.txt and returns a simple validity flag (1 or 0). It checks that the response:
- Succeeds (HTTP 2xx)
- Has a Content-Type of text/plain
- Contains balanced Markdown code fences (…)
- Has matching counts of [ vs. ] and ( vs. )
If any check fails, it returns 0; otherwise it returns 1.1 parent ce799a4 commit 8461f5c
1 file changed
+14
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
0 commit comments