Pman.GoogleTranslate.js
[Pman.Core] / Pman.GoogleTranslate.js
index 6f2f271..361413b 100644 (file)
@@ -41,7 +41,7 @@ Pman.GoogleTranslate = function(str, src, dest, cb) {
                     cb(complete);
                     return;
                 }
-                if (!sbits[cur].length || !sbits[cur].replace(/\s/+).length) {
+                if (!sbits[cur].length || !sbits[cur].replace(/\s+/).length) {
                     cur++;
                     continue;
                 }