We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 97154e2 + bd33cd3 commit 51ef0cdCopy full SHA for 51ef0cd
src/js/simplemde.js
@@ -1049,7 +1049,7 @@ function extend(target) {
1049
1050
/* The right word count in respect for CJK. */
1051
function wordCount(data) {
1052
- var pattern = /[a-zA-Z0-9_\u0392-\u03c9]+|[\u4E00-\u9FFF\u3400-\u4dbf\uf900-\ufaff\u3040-\u309f\uac00-\ud7af]+/g;
+ var pattern = /[a-zA-Z0-9_\u0392-\u03c9\u0410-\u04F9]]+|[\u4E00-\u9FFF\u3400-\u4dbf\uf900-\ufaff\u3040-\u309f\uac00-\ud7af]+/g;
1053
var m = data.match(pattern);
1054
var count = 0;
1055
if(m === null) return count;
@@ -2011,4 +2011,4 @@ SimpleMDE.prototype.toTextArea = function() {
2011
}
2012
};
2013
2014
-module.exports = SimpleMDE;
+module.exports = SimpleMDE;
0 commit comments