mirror of
https://github.com/msoedov/agentic_security.git
synced 2026-09-30 19:59:34 +02: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 io
|
||||||
import os
|
import os
|
||||||
import random
|
import random
|
||||||
|
import re
|
||||||
from collections.abc import Callable, Iterator
|
from collections.abc import Callable, Iterator
|
||||||
from functools import partial
|
from functools import partial
|
||||||
from typing import Any, TypeVar
|
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.
|
Returns the URL unchanged for non-Google-Sheets links.
|
||||||
"""
|
"""
|
||||||
import re
|
|
||||||
|
|
||||||
match = re.match(
|
match = re.match(
|
||||||
r"https://docs\.google\.com/spreadsheets/d/([^/]+)(?:/[^?#]*)?(?:[?#].*)?$",
|
r"https://docs\.google\.com/spreadsheets/d/([^/]+)(?:/[^?#]*)?(?:[?#].*)?$",
|
||||||
url,
|
url,
|
||||||
|
|||||||
Reference in new issue
Block a user