mirror of
https://github.com/elicpeter/nyx.git
synced 2026-06-12 19:55:14 +02:00
9 lines
216 B
Python
9 lines
216 B
Python
"""Phase 21 — Graphene resolver benign control."""
|
|
import re
|
|
|
|
_NYX_ADAPTER_MARKER = "import graphene"
|
|
|
|
|
|
def resolve_user(self, info, id):
|
|
safe = re.sub(r"[^A-Za-z0-9_-]", "", str(id))
|
|
return "user-" + safe
|