mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-31 09:08:30 +01:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user