空の文字列ではありませんか?
// loop through space separated "tokens" in a string
// will loop through "" - needs update
$P.eachString = function (str, func, con) {
var regexp = /^|\s+/;
if (regexp.test(str)) {
// ... stuff
}
};
上記のコードは、空の文字列 "" に一致します。対戦したい
ケース1
some_string
ケース2
some_string1 some_string2
ケース3
some_string1 some_string2 some_string_3
等