(tag)
| 112 | |
| 113 | |
| 114 | def SanitizeVersionTag(tag): |
| 115 | version_without_prefix = re.compile(r"^\d+\.\d+\.\d+(?:\.\d+)?$") |
| 116 | version_with_prefix = re.compile(r"^tags\/\d+\.\d+\.\d+(?:\.\d+)?$") |
| 117 | |
| 118 | if version_without_prefix.match(tag): |
| 119 | return tag |
| 120 | elif version_with_prefix.match(tag): |
| 121 | return tag[len("tags/"):] |
| 122 | else: |
| 123 | return None |
| 124 | |
| 125 | |
| 126 | def NormalizeVersionTags(version_tags): |
searching dependent graphs…