提交 eec79d70 编写于 作者: J Joao Moreno

fixes #54399

上级 7289c303
......@@ -158,6 +158,13 @@ export class ReleaseNotesManager {
if (!this._releaseNotesCache[version]) {
this._releaseNotesCache[version] = this._requestService.request({ url })
.then(asText)
.then(text => {
if (!/^#\s/.test(text)) { // release notes always starts with `#` followed by whitespace
return TPromise.wrapError<string>(new Error('Invalid release notes'));
}
return TPromise.wrap(text);
})
.then(text => patchKeybindings(text));
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册