Skip to content

Commit

Permalink
Two character carriage return option
Browse files Browse the repository at this point in the history
  • Loading branch information
ractoon committed Feb 14, 2017
1 parent 57743bc commit bbde3a2
Show file tree
Hide file tree
Showing 6 changed files with 234 additions and 216 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ countSpaces : false, // count spaces as character
countDown : false, // if the counter should deduct from maximum characters/words rather than counting up
countDownText : "Remaining: %d", // count down text, %d replaced with remaining value
countExtendedCharacters : false, // count extended UTF-8 characters as 2 bytes (such as Chinese characters)
twoCharCarriageReturn : false, // count carriage returns/newlines as 2 characters

// Callback API
maxunder : function(el){}, // Callback: function(element) - Fires when counter is under max limit
Expand Down Expand Up @@ -156,4 +157,5 @@ init : function(el){} // Callback: function(element
- [eprincen2](https://github.com/eprincen2) - jQuery Validate compatibility fix
- [Hexodus](https://github.com/Hexodus) - minunder/maxunder events
- [juliovedovatto](https://github.com/juliovedovatto) / [alvaro-canepa](https://github.com/alvaro-canepa) - multiple classes support for counter container
- [dtipson](https://github.com/dtipson) - multiple classes error fix
- [dtipson](https://github.com/dtipson) - multiple classes error fix
- [jmichalicek](https://github.com/jmichalicek) - count carriage returns/newlines as 2 characters
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "jquery-text-counter",
"version": "0.5.0",
"version": "0.6.0",
"main": "textcounter.js",
"license": "MIT",
"ignore": [
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"minimum",
"maximum"
],
"version": "0.5.0",
"version": "0.6.0",
"author": {
"name": "ractoon",
"url": "http://www.ractoon.com"
Expand Down
2 changes: 1 addition & 1 deletion textcounter.jquery.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"minimum",
"maximum"
],
"version": "0.5.0",
"version": "0.6.0",
"author": {
"name": "ractoon",
"url": "http://www.ractoon.com"
Expand Down
Loading

0 comments on commit bbde3a2

Please sign in to comment.