From 915e98f829c7522b8862e4e36c57cb4c0b86ff33 Mon Sep 17 00:00:00 2001 From: rlx <0x0073@0x2620.org> Date: Thu, 24 May 2012 07:55:18 +0000 Subject: [PATCH] fix a bug in sort --- source/Ox/js/Array.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source/Ox/js/Array.js b/source/Ox/js/Array.js index fbd9bef8..8e845c40 100644 --- a/source/Ox/js/Array.js +++ b/source/Ox/js/Array.js @@ -433,7 +433,9 @@ Ox.range = function() { var match; if (Ox.isString(val)) { match = arr_[i].match(/\d+/g); - match && matches.concat(match); + if (match) { + matches = matches.concat(match); + } } }); // get length of longest number