silly goober bot
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

feat(code_expantion): handle tangled.org

authored by isabelroses.com and committed by

GitHub 799ce858 576c2b79

+1 -1
+1 -1
src/event_handler/code_expantion.rs
··· 25 25 26 26 async fn extract_code_blocks(msg: String, client: &Client) -> Result<Vec<String>> { 27 27 let re = Regex::new( 28 - r"https?://(?P<host>(git.*|codeberg\.org))/(?P<repo>[\w-]+/[\w.-]+)/(blob|(src/(commit|branch)))?/(?P<reference>\S+?)/(?P<file>\S+)#L(?P<start>\d+)(?:[~-]L?(?P<end>\d+)?)?", 28 + r"https?://(?P<host>(git.*|codeberg\.org|tangled\.org))/(?P<repo>[\w-]+/[\w.-]+)/(blob|(src/(commit|branch)))?/(?P<reference>\S+?)/(?P<file>\S+)#L(?P<start>\d+)(?:[~-]L?(?P<end>\d+)?)?", 29 29 )?; 30 30 31 31 let mut blocks: Vec<String> = Vec::new();