fix spaces import
Browse files7188 unmodified lines718971907191719271927193719471947195719671977188 unmodified lines """Check if URL is a valid Hugging Face Spaces URL and extract username/project""" import re # Pattern to match HF Spaces URLs # Pattern to match HF Spaces URLs (allows dots in space names) url_pattern = re.compile( r'^(https?://)?(huggingface\.co|hf\.co)/spaces/([\w-]+)/([\w-]+)$', r'^(https?://)?(huggingface\.co|hf\.co)/spaces/([\w.-]+)/([\w.-]+)$', re.IGNORECASE ) app.py+2-2