Skip to content
Clone
b453d5d
32 lines 612 B Rust
use crate::parse::{EmbedRule, Platform};
use crate::Category;
pub struct Replit;
impl Platform for Replit {
fn id(&self) -> &'static str {
"replit"
}
fn name(&self) -> &'static str {
"Replit"
}
fn category(&self) -> Category {
Category::Dev
}
fn domains(&self) -> &'static [&'static str] {
&["replit.com", "repl.it"]
}
fn embed_rule(&self) -> Option<EmbedRule> {
None
}
fn oembed(&self) -> Option<&'static str> {
Some("https://replit.com/data/oembed?url={url_enc}")
}
}
pub static PLATFORM: Replit = Replit;