mirror of
https://github.com/facundoolano/jorge.git
synced 2024-12-25 21:58:28 +01:00
fix smartify repalcement of quoted questions/exclamations
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
e1d0a38483
commit
4ef95bf910
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