mirror of
https://github.com/msoedov/agentic_security.git
synced 2026-11-25 19:43:29 +01:00
fix: move import re to module level
This commit is contained in:
1 parent
b4a5a5dc5a
commit
68ef73e528
1 file changed
+1
-2
@@ -1,6 +1,7 @@
|
||||
import io
|
||||
import os
|
||||
import random
|
||||
import re
|
||||
from collections.abc import Callable, Iterator
|
||||
from functools import partial
|
||||
from typing import Any, TypeVar
|
||||
@@ -52,8 +53,6 @@ def _normalize_google_sheets_url(url: str) -> str:
|
||||
|
||||
Returns the URL unchanged for non-Google-Sheets links.
|
||||
"""
|
||||
import re
|
||||
|
||||
match = re.match(
|
||||
r"https://docs\.google\.com/spreadsheets/d/([^/]+)(?:/[^?#]*)?(?:[?#].*)?$",
|
||||
url,
|
||||
|
||||
Reference in new issue
Block a user