def getVersion(data):
data = data.splitlines()<EOL>return next((<EOL>v<EOL>for v, u in zip(data, data[<NUM_LIT:1>:])  <EOL>if len(v) == len(u) and allSame(u) and hasDigit(v) and "<STR_LIT:.>" in v<EOL>))<EOL>
Parse version from changelog written in RST format.