From e6cabf5f3da6d2ece0abdfeb6e41325d69e6ffdd Mon Sep 17 00:00:00 2001 From: xhianil Date: Sat, 24 Feb 2024 18:41:43 -0700 Subject: [PATCH] Update flavor_text.dm Modern, better --- code/datums/elements/flavor_text.dm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/datums/elements/flavor_text.dm b/code/datums/elements/flavor_text.dm index fd8cb45e97..a709e480ee 100644 --- a/code/datums/elements/flavor_text.dm +++ b/code/datums/elements/flavor_text.dm @@ -172,11 +172,11 @@ GLOBAL_LIST_EMPTY(mobs_with_editable_flavor_text) //et tu, hacky code return // Validate the headshot URL - var/static/link_regex = regex("https://i\\.gyazo\\.com|https://media\\.discordapp\\.net|https://cdn\\.discordapp\\.com|https://media\\.discordapp\\.net$") + var/static/link_regex = regex("https://i\\.gyazo\\.com|https://media\\.discordapp\\.net|https://cdn\\.discordapp\\.com|https://media\\.discordapp\\.net$|https://static1\\.e621\\.net") var/static/end_regex = regex("\\.jpg|\\.png|\\.jpeg$") if(!findtext(new_headshot, link_regex)) - to_chat(src, span_warning("The link needs to be an unshortened Gyazo or Discordapp link!")) + to_chat(src, span_warning("The link needs to be an unshortened Gyazo, E621, or Discordapp link!")) return if(!findtext(new_headshot, end_regex)) to_chat(src, span_warning("You need either \".png\", \".jpg\", or \".jpeg\" in the link!"))