Overview
| Comment: | make html tags check case insensitive |
|---|---|
| Downloads: | Tarball | ZIP archive | SQL archive |
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA3-256: |
bf99298edf217d424fbb673834559f83 |
| User & Date: | arcade on 2026-07-31 15:11:06.510 |
| Other Links: | manifest | tags |
Context
|
2026-07-31
| ||
| 15:12 | reorder uses, properly react to errors with hostname, check-in: 713c1e7fb2 user: arcade tags: trunk | |
| 15:11 | make html tags check case insensitive check-in: bf99298edf user: arcade tags: trunk | |
| 15:10 | expand and reorganize check-in: 6e7d1e877b user: arcade tags: trunk | |
Changes
Modified src/utils.rs
from [8e25f3e7d7]
to [712e343f03].
1 2 3 4 5 6 | use crate::Cursor; use std::borrow::Cow; use html_escape::encode_text; use lazy_static::lazy_static; | | > > > | > | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
use crate::Cursor;
use std::borrow::Cow;
use html_escape::encode_text;
use lazy_static::lazy_static;
use regex::{
Regex,
RegexBuilder,
};
use stacked_errors::{
bail,
Result,
};
lazy_static! {
pub static ref RE_DOMAIN: Regex = Regex::new(r"^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$").expect("Invalid domain regex");
pub static ref RE_CLOSING: Regex = RegexBuilder::new(r"</[ \t]*(pre|code)[ \t]*>")
.case_insensitive(true).build().expect("Invalid closing tag regex");
}
/// Stores binary attachment data and metadata for Telegram messages.
/// The data is wrapped in a `Cursor<Vec<u8>>` for efficient streaming,
/// while `name` holds the filename or display name of the attachment.
#[derive(Debug)]
pub struct Attachment {
|
| ︙ | ︙ |