summary refs log tree commit diff
path: root/src/MainWindow.cpp
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2019-05-01 12:11:19 +0200
committerNicolas Werner <nicolas.werner@hotmail.de>2019-05-01 12:11:19 +0200
commit23eef9e1bcbb7a9ada18d55a9198aa13903e571a (patch)
tree9d44ca34e1df056a20f4f1e95c5831843ca98170 /src/MainWindow.cpp
parentMerge pull request #58 from zapashcanon/sh (diff)
downloadnheko-23eef9e1bcbb7a9ada18d55a9198aa13903e571a.tar.xz
Simplify linkifyMessage
Parsing html as xml has inherent problems, most notable there are many
matrix clients that don't escape ampersands in urls of mx-replies, etc.
(See issue #18)

This also removes the replacement of <mx-reply> as it isn't strictly
needed.

Also the QRegExp is replaced with the Qt5 QRegularExpression for
perfomance and because it supports lookahead and lookbehind.

I'm pretty sure that the original code also replaced href="" with
href=\"\", which was probably wrong, but I'm not to sure about that.

Fixes #18
Diffstat (limited to 'src/MainWindow.cpp')
0 files changed, 0 insertions, 0 deletions