AnonymousSpottedToad/securityPatternsRecovery / codebase /repos /python /AmberLee2427_nancy-brain /scripts /script_utils.py
| """Shared utility functions for nancy-brain scripts.""" | |
| import re | |
| from typing import Optional | |
| def is_full_commit_sha(ref: Optional[str]) -> bool: | |
| """Return True if *ref* is a full 40-character hexadecimal Git commit SHA.""" | |
| return isinstance(ref, str) and bool(re.fullmatch(r"[0-9a-fA-F]{40}", ref)) | |
Xet Storage Details
- Size:
- 311 Bytes
- Xet hash:
- d0e2c5c62f46453a602811ae9d1a6d2be6204d6b228f09949183f0f38ff9dd9c
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.