| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 6a4c6ce commit dfb77a5
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -76,13 +76,13 @@ fs.writeFileSync(new URL('./all.html', source), all, 'utf8'); | |||
| 76 | 76 | ||
| 77 | 77 | // Validate all hrefs have a target. | |
| 78 | 78 | const ids = new Set(); | |
| 79 | - const idRe = / id="(\w+)"/g; | ||
| 79 | + const idRe = / id="([^"]+)"/g; | ||
| 80 | 80 | let match; | |
| 81 | 81 | while (match = idRe.exec(all)) { | |
| 82 | 82 | ids.add(match[1]); | |
| 83 | 83 | } | |
| 84 | 84 | ||
| 85 | - const hrefRe = / href="#(\w+)"/g; | ||
| 85 | + const hrefRe = / href="#([^"]+)"/g; | ||
| 86 | 86 | while (match = hrefRe.exec(all)) { | |
| 87 | 87 | if (!ids.has(match[1])) throw new Error(`link not found: ${match[1]}`); | |
| 88 | 88 | } | |
| Back | FazBrowse Home | New Git URL |
0 commit comments