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 cca6b1c commit 6485053
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,8 @@ function normalizeWithFirstScheme() {

function fixTypography() {
textarea.setter = getEl('text_input').value
.replace(/запятая/g, ',')
.replace(/точка/g, '.')
.replace(/ ([,.!?])/g, '$1')
.replace(/([,.!?])([^ .!])/g, '$1 $2')
.replace(/^[а-я]/g, function(match) { return match.toUpperCase() })
Expand Down

0 comments on commit 6485053

Please sign in to comment.