Find URLs inside comments #1358
Answered
by
mre
jacobdalamb
asked this question in
Ideas
-
I think a really neat feature to add would be the ability to read urls that are inside comments of files outside of just HTML and Markdown but CSS, JS/TS and many more. |
Beta Was this translation helpful? Give feedback.
Answered by
mre
Jan 25, 2024
Replies: 1 comment 2 replies
-
Do you have an example? ❯❯❯ cat test.css
/* https://corrode.dev */
a {
color: hotpink;
}
❯❯❯ lychee -vv test.css
✔ [200] https://corrode.dev/
🔍 1 Total (in 0s) ✅ 1 OK 🚫 0 Errors |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can use globs:
This would search for broken links in all CSS files in all subdirectories.
You can use multiple globs:
A quick way to list all the searched inputs would be
You can find more info on glob patterns here.
The
-vv
is the same as-v -v
, which means "extra verbose". It is a Unix convention.