Skip to content

Commit bbde3a2

Browse files
committed
Two character carriage return option
1 parent 57743bc commit bbde3a2

File tree

6 files changed

+234
-216
lines changed

6 files changed

+234
-216
lines changed

README.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ countSpaces : false, // count spaces as character
127127
countDown : false, // if the counter should deduct from maximum characters/words rather than counting up
128128
countDownText : "Remaining: %d", // count down text, %d replaced with remaining value
129129
countExtendedCharacters : false, // count extended UTF-8 characters as 2 bytes (such as Chinese characters)
130+
twoCharCarriageReturn : false, // count carriage returns/newlines as 2 characters
130131

131132
// Callback API
132133
maxunder : function(el){}, // Callback: function(element) - Fires when counter is under max limit
@@ -156,4 +157,5 @@ init : function(el){} // Callback: function(element
156157
- [eprincen2](https://github.com/eprincen2) - jQuery Validate compatibility fix
157158
- [Hexodus](https://github.com/Hexodus) - minunder/maxunder events
158159
- [juliovedovatto](https://github.com/juliovedovatto) / [alvaro-canepa](https://github.com/alvaro-canepa) - multiple classes support for counter container
159-
- [dtipson](https://github.com/dtipson) - multiple classes error fix
160+
- [dtipson](https://github.com/dtipson) - multiple classes error fix
161+
- [jmichalicek](https://github.com/jmichalicek) - count carriage returns/newlines as 2 characters

bower.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "jquery-text-counter",
3-
"version": "0.5.0",
3+
"version": "0.6.0",
44
"main": "textcounter.js",
55
"license": "MIT",
66
"ignore": [

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"minimum",
1212
"maximum"
1313
],
14-
"version": "0.5.0",
14+
"version": "0.6.0",
1515
"author": {
1616
"name": "ractoon",
1717
"url": "http://www.ractoon.com"

textcounter.jquery.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"minimum",
1010
"maximum"
1111
],
12-
"version": "0.5.0",
12+
"version": "0.6.0",
1313
"author": {
1414
"name": "ractoon",
1515
"url": "http://www.ractoon.com"

0 commit comments

Comments
 (0)