Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix address bar queries when doing math expressions #3130

Merged
merged 1 commit into from
Aug 26, 2024

Conversation

jotaemepereira
Copy link
Collaborator

@jotaemepereira jotaemepereira commented Aug 21, 2024

Task/Issue URL: https://app.asana.com/0/1204006570077678/1208002970105121/f
Tech Design URL:
CC:

Description:
This pull request introduces a change on how we check for valid hostnames. The current regurlar expression had an issue where some mathematical expressions where valid hostnames.

BSK PR: duckduckgo/BrowserServicesKit#952

Steps to test this PR:

  1. Open the app
  2. Put 16385-12228.75 in the address bar
  3. This should do a search on our SERP instead of trying to open a webpage
  4. Test other usual web sites URLs and check those are working.

Definition of Done:

@tomasstrba
Copy link
Contributor

@jotaemepereira, I can't compile this.

Screenshot 2024-08-22 at 23 47 39

Does it work for you? I'll try tomorrow with a different BSK reference

@jotaemepereira
Copy link
Collaborator Author

@jotaemepereira, I can't compile this.

Screenshot 2024-08-22 at 23 47 39 Does it work for you? I'll try tomorrow with a different BSK reference

@tomasstrba It works for me. Can you try all the clean Xcode dance? I’m pointing to the branch needed for this work on BSK.

Copy link
Contributor

@tomasstrba tomasstrba left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Happy to see math calculations finally handled properly in the address bar. Great job, @jotaemepereira 👏 👏 👏

@jotaemepereira jotaemepereira merged commit 15f4428 into main Aug 26, 2024
15 of 18 checks passed
@jotaemepereira jotaemepereira deleted the juan/fix-calculator-bar-address branch August 26, 2024 00:27
samsymons added a commit that referenced this pull request Aug 26, 2024
…iption

* main:
  Migrate asana-extract-task-id GHA action to a fastlane plugin (#3145)
  Fix address bar queries when doing math expressions (#3130)
samsymons added a commit that referenced this pull request Aug 28, 2024
# By Dax the Duck (3) and others
# Via Dominik Kapusta (2) and GitHub (2)
* main:
  Unified feedback form for Privacy Pro (#3058)
  Fix state restoration after app termination (#3127)
  Bump Submodules/privacy-reference-tests from `afb4f61` to `6133e7d` (#3148)
  Bump version to 1.104.0 (250)
  Set marketing version to 1.104.0
  Update embedded files
  Freemium PIR - Add Desktop RMF Attribute (#3146)
  Migrate asana-extract-task-id GHA action to a fastlane plugin (#3145)
  Add missing secrets to publish_dmg_release.yml
  Migrate asana-extract-task-id GHA action to a fastlane plugin (#3145)
  Fix address bar queries when doing math expressions (#3130)

# Conflicts:
#	DuckDuckGo.xcodeproj/project.pbxproj
#	DuckDuckGo.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved
samsymons added a commit that referenced this pull request Aug 29, 2024
# By Dax the Duck (9) and others
# Via GitHub (6) and Dominik Kapusta (2)
* main: (44 commits)
  Allow using a production subscription with staging VPN environment (#3109)
  Add error pixels for Subscription keychain access errors (#3147)
  onboarding dax dialogs (#3149)
  Logging refactoring phase #2 (#3154)
  Move WireGuard dependency to VPN extensions (#3144)
  Unified feedback form for Privacy Pro (#3058)
  Fix state restoration after app termination (#3127)
  Bump Submodules/privacy-reference-tests from `afb4f61` to `6133e7d` (#3148)
  Bump version to 1.104.0 (250)
  Set marketing version to 1.104.0
  Update embedded files
  Freemium PIR - Add Desktop RMF Attribute (#3146)
  Migrate asana-extract-task-id GHA action to a fastlane plugin (#3145)
  Add missing secrets to publish_dmg_release.yml
  Migrate asana-extract-task-id GHA action to a fastlane plugin (#3145)
  Fix address bar queries when doing math expressions (#3130)
  Bump version to 1.103.0 (249)
  Bump version to 1.103.0 (248)
  Resolving automatic update edge cases (#3142)
  PIR Time-Based Pixel: 24 Opt-Out Request Success Rate (#2942)
  ...

# Conflicts:
#	DuckDuckGo.xcodeproj/project.pbxproj
#	DuckDuckGo.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved
#	LocalPackages/DataBrokerProtection/Package.swift
#	LocalPackages/NetworkProtectionMac/Package.swift
#	LocalPackages/SubscriptionUI/Package.swift
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants