Update src/utils/splashText.ts

Co-authored-by: Vitaly <vital2580@icloud.com>
This commit is contained in:
Maksim Grigorev 2025-05-19 15:17:36 +03:00 committed by GitHub
commit 90c283c5ee
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,5 +1,5 @@
const MAX_WORDS = 5
const HTTPS_REGEX = /^https?:\/\/[-\w@:%.+~#=]{1,256}\.[a-zA-Z\d()]{1,6}\b([-\w()@:%+.~#?&/=]*)$/
const HTTPS_REGEX = /^https?:\/\//
const TIMEOUT_MS = 5000
const SPLASH_CACHE_KEY = 'minecraft_splash_text_cache'
const SPLASH_URL_KEY = 'minecraft_splash_url'