From: jordan Date: Sun, 27 Mar 2011 11:33:52 +0000 (+0000) Subject: #OSQA-544, words in cyrillic should also be counted, adding the А-Я (all the letters... X-Git-Tag: live~398 X-Git-Url: https://git.openstreetmap.org./osqa.git/commitdiff_plain/52f39e99d1e133c07ee2f2b549a7720028bd2909?ds=sidebyside;hp=7fc0c9f2c94f090d9f743798cd9ef835757dcbc2 #OSQA-544, words in cyrillic should also be counted, adding the А-Я (all the letters from the cyrillic alphabet) intervals into the regular expression. git-svn-id: http://svn.osqa.net/svnroot/osqa/trunk@898 0cfe37f9-358a-4d5e-be75-b63607b5c754 --- diff --git a/forum/skins/default/media/js/osqa.main.js b/forum/skins/default/media/js/osqa.main.js index 147cf54..0cf354f 100644 --- a/forum/skins/default/media/js/osqa.main.js +++ b/forum/skins/default/media/js/osqa.main.js @@ -567,8 +567,8 @@ $(function() { var $previewer = $('#previewer'); var $container = $('#editor-metrics'); - var initial_whitespace_rExp = /^[^A-Za-z0-9]+/gi; - var non_alphanumerics_rExp = rExp = /[^A-Za-z0-9]+/gi; + var initial_whitespace_rExp = /^[^A-Za-zА-Яа-я0-9]+/gi; + var non_alphanumerics_rExp = rExp = /[^A-Za-zА-Яа-я0-9]+/gi; var editor_interval = null; $editor.focus(function() {