MCPcopy Index your code
hub / github.com/nodejs/node / SanitizeVersionTag

Function SanitizeVersionTag

deps/v8/tools/release/common_includes.py:114–123  ·  view source on GitHub ↗
(tag)

Source from the content-addressed store, hash-verified

112
113
114def 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
126def NormalizeVersionTags(version_tags):

Callers 3

NormalizeVersionTagsFunction · 0.85
GetVersionTagMethod · 0.85

Calls 2

matchMethod · 0.65
compileMethod · 0.45

Tested by 1

Used in the wild real call sites across dependent graphs

searching dependent graphs…