提交 729fb540 编写于 作者: J Joao Moreno

improve long commit check perf

上级 ce4bc1a7
......@@ -142,13 +142,13 @@ export class ChangesView extends EventEmitter.EventEmitter implements GitView.IV
return null;
}
if (Strings.trim(value.split('\n')[0]).length > 50) {
if (/^[^\n]{51}/.test(value)) {
return {
content: ChangesView.LONG_COMMIT,
type: InputBox.MessageType.WARNING
};
}
return null;
}
},
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册