|
3 | 3 | * https://api.typingdna.com/scripts/typingdna.js |
4 | 4 | * https://typingdna.com/scripts/typingdna.js (alternative) |
5 | 5 | * |
6 | | - * @version 2.12 |
| 6 | + * @version 2.13 |
7 | 7 | * @author Raul Popa |
8 | 8 | * @copyright SC TypingDNA SRL, http://typingdna.com |
9 | 9 | * @license http://www.apache.org/licenses/LICENSE-2.0 |
@@ -102,7 +102,7 @@ function TypingDNA() { |
102 | 102 | TypingDNA.prototype.defaultHistoryLength = TypingDNA.defaultHistoryLength; |
103 | 103 | TypingDNA.prototype.maxSeekTime = TypingDNA.maxSeekTime; |
104 | 104 | TypingDNA.prototype.maxPressTime = TypingDNA.maxPressTime; |
105 | | - TypingDNA.version = 2.12; |
| 105 | + TypingDNA.version = 2.13; |
106 | 106 | TypingDNA.flags = 0; |
107 | 107 | TypingDNA.instance = this; |
108 | 108 | TypingDNA.document = document; |
@@ -621,7 +621,7 @@ function TypingDNA() { |
621 | 621 |
|
622 | 622 | /** |
623 | 623 | * This is the main function that outputs the typing pattern as a String |
624 | | - * {type:Number, text:String, textId:Number, length: Number, extended:Boolean, targetId:String} |
| 624 | + * {type:Number, text:String, textId:Number, length: Number, extended:Boolean, targetId:String, caseSensitive:Boolean} |
625 | 625 | * @param {Object} obj an object with the following properties |
626 | 626 | * * * @param {String} type 0 for standard pattern, 1 for diagram pattern |
627 | 627 | * * * @param {Number} length (Optional) the length of the text in the history for which you want |
@@ -1005,8 +1005,7 @@ function TypingDNA() { |
1005 | 1005 | } |
1006 | 1006 | } |
1007 | 1007 | if (TypingDNA.replaceMissingKeysPerc < missingCount*100/strLength) { |
1008 | | - returnArr = [returnArr[0]]; |
1009 | | - break; |
| 1008 | + return null; |
1010 | 1009 | } |
1011 | 1010 | } |
1012 | 1011 | } else { |
|
0 commit comments