We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b6b1f7c commit bd33cd3Copy full SHA for bd33cd3
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;
@@ -2010,4 +2010,4 @@ SimpleMDE.prototype.toTextArea = function() {
2010
}
2011
};
2012
2013
-module.exports = SimpleMDE;
+module.exports = SimpleMDE;
0 commit comments