Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Perlito5 - js - fix split()
  • Loading branch information
fglock committed Jun 11, 2014
1 parent 11913e2 commit c03563c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src5/lib/Perlito5/Javascript2/CORE.pm
Expand Up @@ -292,6 +292,9 @@ CORE.split = function(List__) {
var pattern = List__[0];
var s = List__[1];
var limit = List__[2];
if (s == '') {
return []
}
if (typeof pattern === "string") {
if (pattern == " ") {
var res = [];
Expand Down

0 comments on commit c03563c

Please sign in to comment.