From c92b86502e0ea852ea3669e7c5e06e265becb4a8 Mon Sep 17 00:00:00 2001 From: Juan Manuel Pereira Date: Sun, 25 Aug 2024 20:33:40 -0300 Subject: [PATCH] Fix address bar queries when doing math expressions (#952) --- .../Common/Extensions/StringExtension.swift | 8 ++++- .../Extensions/StringExtensionTests.swift | 34 +++++++++++++++++++ 2 files changed, 41 insertions(+), 1 deletion(-) diff --git a/Sources/Common/Extensions/StringExtension.swift b/Sources/Common/Extensions/StringExtension.swift index 23fd37ad0..09050cfe2 100644 --- a/Sources/Common/Extensions/StringExtension.swift +++ b/Sources/Common/Extensions/StringExtension.swift @@ -31,6 +31,8 @@ extension RegEx { static let hostName = regex("^(((?!-)[A-Za-z0-9-]{1,63}(?