From 1c9f63ab188baaa469ee443fd5fd211a609c17c8 Mon Sep 17 00:00:00 2001 From: anylayer <46556817+anylayer@users.noreply.github.com> Date: Sat, 8 Feb 2025 10:30:14 +0800 Subject: [PATCH] Update droid.go fix MainJSRegex bugs --- droid.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/droid.go b/droid.go index 2e18a8f0e..9d277c842 100644 --- a/droid.go +++ b/droid.go @@ -100,7 +100,7 @@ func (s *Session) SetGatewayURL(url string) { var apiVersionRegex = regexp.MustCompile(`API_VERSION: (\d+),`) var gatewayURLRegex = regexp.MustCompile(`GATEWAY_ENDPOINT:\s?['"](.+?)['"],`) -var mainJSRegex = regexp.MustCompile(`src="(/assets/web.[a-f0-9]{20}.js)"`) +var mainJSRegex = regexp.MustCompile(`src="(/assets/web.[a-f0-9]+.js)"`) var buildNumberRegex = regexp.MustCompile(`(?:buildNumber|build_number):\s?['"]?(\d{6,})['"]?`) func (s *Session) LoadMainPage(ctx context.Context) error {