0
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-12-12 16:42:11 +01:00
gitea/modules/markup
Yarden Shoham 1c0566f66d
Render email addresses as such if followed by punctuation (#27987)
Added the following characters to the regular expression for the email:

- ,
- ;
- ?
- !

Also added a test case.

- Fixes #27616 

# Before

![image](https://github.com/go-gitea/gitea/assets/20454870/c57eac26-f281-43ef-a51d-9c9a81b63efa)

# After

![image](https://github.com/go-gitea/gitea/assets/20454870/fc7d5c08-4350-4af0-a7f0-d1444d2d75af)

Signed-off-by: Yarden Shoham <git@yardenshoham.com>
2023-11-11 05:08:19 +01:00
..
asciicast
common
console
csv
external
markdown Upgrade to golangci-lint@v1.55.0 (#27756) 2023-10-24 02:54:59 +00:00
mdstripper
orgmode Remove title from elements on Org mode (#27968) 2023-11-10 01:45:13 +00:00
camo_test.go
camo.go
html_internal_test.go
html_test.go Render email addresses as such if followed by punctuation (#27987) 2023-11-11 05:08:19 +01:00
html.go Render email addresses as such if followed by punctuation (#27987) 2023-11-11 05:08:19 +01:00
renderer_test.go
renderer.go
sanitizer_test.go
sanitizer.go