Skip to content

Commit

Permalink
Improve regex
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiofranco85 authored Mar 27, 2023
1 parent ebfdfe3 commit 5a80ef2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/web-crawl-q-and-a/web-qa.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
from openai.embeddings_utils import distances_from_embeddings, cosine_similarity

# Regex pattern to match a URL
HTTP_URL_PATTERN = r'^http[s]*://.+'
HTTP_URL_PATTERN = r'^http[s]{0,1}://.+$'

# Define root domain to crawl
domain = "openai.com"
Expand Down

0 comments on commit 5a80ef2

Please sign in to comment.