Skip to content

Commit c293c92

Browse files
authored
Merge pull request #606 from TiberiusBaker/Key-regex-fix
Update Key Regex
2 parents 1f80797 + 095033f commit c293c92

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pygsheets/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
GOOGLE_SHEET_CELL_UPDATES_LIMIT = 50000
1919

20-
_url_key_re_v1 = re.compile(r'key=([^&#]+)')
20+
_url_key_re_v1 = re.compile(r'[?&]key=([^&#]+)')
2121
_url_key_re_v2 = re.compile(r"/spreadsheets/d/([a-zA-Z0-9-_]+)")
2222
_email_patttern = re.compile(r"\"?([-a-zA-Z0-9.`?{}]+@[-a-zA-Z0-9.]+\.\w+)\"?")
2323
# _domain_pattern = re.compile("(?!-)[A-Z\d-]{1,63}(?<!-)$", re.IGNORECASE)

0 commit comments

Comments
 (0)