Skip to content

Commit

Permalink
Merge f78d715 into 20c7203
Browse files Browse the repository at this point in the history
  • Loading branch information
csMACnz committed Nov 1, 2019
2 parents 20c7203 + f78d715 commit 377911d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/rules_core/replacements.js
Expand Up @@ -46,7 +46,7 @@ export default function replace(state) {
.replace(/\+-/g, '±')
// .., ..., ....... -> …
// but ?..... & !..... -> ?.. & !..
.replace(/\.{2,}/g, '…').replace(/([?!])…/g, '$1..')
.replace(/\.{3,}/g, '…').replace(/([?!])…/g, '$1..')
.replace(/([?!]){4,}/g, '$1$1$1').replace(/,{2,}/g, ',')
// em-dash
.replace(/(^|[^-])---([^-]|$)/mg, '$1\u2014$2')
Expand Down
2 changes: 1 addition & 1 deletion test/fixtures/remarkable/typographer.txt
Expand Up @@ -49,7 +49,7 @@ ellipsis
.
test.. test... test..... test?..... test!....
.
<p>test test… test… test?.. test!..</p>
<p>test.. test… test… test?.. test!..</p>
.


Expand Down

0 comments on commit 377911d

Please sign in to comment.