TF-1162 Got the open link bug again

This commit is contained in:
dab246
2023-03-10 08:37:39 +07:00
committed by Dat Vu
parent 20393eacf0
commit 22befea586
2 changed files with 42 additions and 15 deletions
+13
View File
@@ -42,5 +42,18 @@ void main() {
equals('See <a href="mailto:tdvu@linagora.com">tdvu@linagora.com</a> at Hanoi'));
}
);
test(
'generateLinkify should preserve the text when input text contain <a href=',
() async {
final htmlValidate = linkifyHtml.generateLinkify(
'Check console output at "<a href="https://ci-builds.apache.org/job/james/job/ApacheJames/job/master/765/">james/ApacheJames/master [master] [765]</a>"'
);
expect(
htmlValidate,
equals('Check console output at "<a href="https://ci-builds.apache.org/job/james/job/ApacheJames/job/master/765/">james/ApacheJames/master [master] [765]</a>"')
);
}
);
});
}