mirror of
https://github.com/yogstation13/Yogstation.git
synced 2025-02-26 09:04:50 +00:00
* Play Internet Sound sanity checks Now checks if the content URL uses http(s) before playing * HTML is not HTTP: renames regex * Converted global regexes to procs that return them * Revert "Converted global regexes to procs that return them" This reverts commit 2eedbd6982b0c4de943a72c94f92f9d75001c06e.
8 lines
510 B
Plaintext
8 lines
510 B
Plaintext
//These are a bunch of regex datums for use /((any|every|no|some|head|foot)where(wolf)?\sand\s)+(\.[\.\s]+\s?where\?)?/i
|
|
GLOBAL_DATUM_INIT(is_http_protocol, /regex, regex("^https?://"))
|
|
|
|
GLOBAL_DATUM_INIT(is_website, /regex, regex("http|www.|\[a-z0-9_-]+.(com|org|net|mil|edu)+", "i"))
|
|
GLOBAL_DATUM_INIT(is_email, /regex, regex("\[a-z0-9_-]+@\[a-z0-9_-]+.\[a-z0-9_-]+", "i"))
|
|
GLOBAL_DATUM_INIT(is_alphanumeric, /regex, regex("\[a-z0-9]+", "i"))
|
|
GLOBAL_DATUM_INIT(is_punctuation, /regex, regex("\[.!?]+", "i"))
|