Skip to content

Commit

Permalink
update index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
RollingHog committed Aug 25, 2023
1 parent f148c74 commit cca6b1c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@ function fixTypography() {
textarea.setter = getEl('text_input').value
.replace(/ ([,.!?])/g, '$1')
.replace(/([,.!?])([^ .!])/g, '$1 $2')
.replace(/^[а-я]/g, function(match) { return match.toUpperCase() })
.replace(/([.!?]) ([а-я])/g, function(match) { return match.toUpperCase() })
.replace(/([а-я,]) ([А-Я][а-я]+)/g, function(match, _gr1, _gr2) { return match.toLowerCase() })
.replace(/ {2}/g, ' ')
Expand Down

0 comments on commit cca6b1c

Please sign in to comment.