fixes regex for l3n.co in headshot uploads (#4094)

## About The Pull Request

Changes the regex to raw strings to allow more variability in the l3n.co
domain, since it prefixes with an alphabetical character
## Why It's Good For The Game
Headshots are easier to upload when using Lensdump

## Proof Of Testing

Compiled and tested on local

## Changelog

not really server facing
This commit is contained in:
YakumoChen
2025-06-21 01:42:53 -04:00
committed by GitHub
parent 2d8ca2eb0d
commit 330990e6c1
@@ -7,7 +7,7 @@
maximum_value_length = MAX_MESSAGE_LEN
/// Assoc list of ckeys and their link, used to cut down on chat spam
var/list/stored_link = list()
var/static/link_regex = regex("i.gyazo.com|a.l3n.co|b.l3n.co|c.l3n.co|static.f-list.net/images/|images2.imgbox.com|thumbs2.imgbox.com|files.catbox.moe") // Catbox, Imgbox, Gyazo, Lensdump, or F-List
var/static/link_regex = regex(@"i\.gyazo.com|.\.l3n\.co|static\.f-list\.net/images/|images2\.imgbox\.com|thumbs2\.imgbox\.com|files\.catbox\.moe") // Catbox, Imgbox, Gyazo, Lensdump, or F-List
var/static/list/valid_extensions = list("jpg", "png", "jpeg") // Regex works fine, if you know how it works
/datum/preference/text/headshot/apply_to_human(mob/living/carbon/human/target, value, datum/preferences/preferences)