Remind me of this nasty later
- Id
- 11ddd6f7b9b07371050199159a69c35a31c6503a
- Author
- Caio
- Commit time
- 2024-06-06T09:08:16+02:00
Modified caca/src/repo/mod.rs
let (kind, content) = get_content(urso, &ctx, &path)?;
let raw_url = self.raw_url(&ctx, &path);
+ // FIXME minijinja range takes u32 but panics on runtime
+ // if >10000 🤡
let mut num_lines = 0;
if let Some(ref data) = content {
num_lines = data.matches('\n').count();