Skip to content

Commit

Permalink
Rule: repeatWord
Browse files Browse the repository at this point in the history
  • Loading branch information
hcodes committed Dec 11, 2014
1 parent 35508f1 commit c663a2c
Show file tree
Hide file tree
Showing 5 changed files with 86 additions and 52 deletions.
10 changes: 10 additions & 0 deletions dist/typograf.js
Original file line number Diff line number Diff line change
Expand Up @@ -638,6 +638,16 @@ Typograf.rule({
}
});

Typograf.rule({
title: 'Удаление повтора слова',
name: 'common/repeatWord',
sortIndex: 1200,
func: function(text) {
return text.replace(/([a-zа-яё]+) \1([;:,.?! \n])/gi, '$1$2');
},
enabled: false
});

Typograf.rule({
title: 'Расстановка кавычек',
name: 'ru/quot',
Expand Down

0 comments on commit c663a2c

Please sign in to comment.