mirror of
https://github.com/facundoolano/jorge.git
synced 2024-11-16 07:47:40 +01:00
fix smartify repalcement of quoted periods
Some checks failed
Test project / build (push) Has been cancelled
Some checks failed
Test project / build (push) Has been cancelled
This commit is contained in:
parent
4ef95bf910
commit
18fc0aca2f
1 changed files with 1 additions and 1 deletions
|
@ -53,7 +53,7 @@ var smartifyTransforms = []struct {
|
|||
{regexp.MustCompile("(^|[^[:alnum:]])``(.+?)''"), "$1“$2”"},
|
||||
{regexp.MustCompile(`(^|[^[:alnum:]])'`), "$1‘"},
|
||||
{regexp.MustCompile(`'`), "’"},
|
||||
{regexp.MustCompile(`(^|[^[:alnum:]?!])"`), "$1“"},
|
||||
{regexp.MustCompile(`(^|[^[:alnum:]?!\.])"`), "$1“"},
|
||||
{regexp.MustCompile(`"($|[^[:alnum:]])`), "”$1"},
|
||||
{regexp.MustCompile(`\\[‘’]`), "'"}, // undo backslashed replacements
|
||||
{regexp.MustCompile(`\\[“”]`), `"`}, // undo backslashed replacements
|
||||
|
|
Loading…
Reference in a new issue