mirror of
https://github.com/msoedov/agentic_security.git
synced 2026-06-23 21:59:57 +02:00
fix: move import re to module level
This commit is contained in:
@@ -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