Commit 0f17cb80 authored by Tobias Hunger's avatar Tobias Hunger
Browse files

VCS: Allow for more email addresses



This is far from correct and will not accept a wide set of valid
email addresses, but it is better than what we used to have and
so far only one person complained about that.

Task-number: QTCREATORBUG-12472
Change-Id: I0d7ed19c9811af0ce28218c40d79988d26cb588b
Reviewed-by: default avatarOrgad Shaneh <orgads@gmail.com>
parent 97bfe3a5
......@@ -529,7 +529,7 @@ protected slots:
EmailTextCursorHandler::EmailTextCursorHandler(VcsBaseEditorWidget *editorWidget)
: UrlTextCursorHandler(editorWidget)
{
setUrlPattern(QLatin1String("[a-zA-Z0-9_\\.]+@[a-zA-Z0-9_\\.]+"));
setUrlPattern(QLatin1String("[a-zA-Z0-9_\\.-]+@[^@ ]+\\.[a-zA-Z]+"));
}
void EmailTextCursorHandler::fillContextMenu(QMenu *menu, EditorContentType type) const
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment