temporary disable video parser

This commit is contained in:
Ren Amamiya
2026-04-10 07:51:56 +07:00
parent 2bc50f07c4
commit 09c8245465
2 changed files with 6 additions and 4 deletions

View File

@@ -69,6 +69,7 @@ impl RenderedText {
pub fn element(&self, id: ElementId, window: &Window, cx: &App) -> AnyElement {
let code_background = cx.theme().elevated_surface_background;
let color = cx.theme().text_accent;
InteractiveText::new(
id,
@@ -100,6 +101,7 @@ impl RenderedText {
}
}
Highlight::Mention => HighlightStyle {
color: Some(color),
underline: Some(UnderlineStyle {
thickness: 1.0.into(),
..Default::default()

View File

@@ -33,9 +33,9 @@ impl MediaExtractor {
}
// Extract video URLs
for capture in self.video_regex.find_iter(text) {
urls.push(capture.as_str().to_string().into());
}
// for capture in self.video_regex.find_iter(text) {
// urls.push(capture.as_str().to_string().into());
// }
urls
}
@@ -48,7 +48,7 @@ impl MediaExtractor {
result = self.image_regex.replace_all(&result, "").to_string();
// Remove video URLs
result = self.video_regex.replace_all(&result, "").to_string();
// result = self.video_regex.replace_all(&result, "").to_string();
// Clean up extra whitespace that might result from removal
self.cleanup_text(&result)