From 16854572c36f538e12640c8a93553ca0e8f50a75 Mon Sep 17 00:00:00 2001 From: 0x1eef <0x1eef@protonmail.com> Date: Thu, 9 Feb 2023 03:39:48 -0300 Subject: [PATCH] Replace "concat" with "push" --- libexec/quran-json/quran.com | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libexec/quran-json/quran.com b/libexec/quran-json/quran.com index cf3695a..5892bfb 100755 --- a/libexec/quran-json/quran.com +++ b/libexec/quran-json/quran.com @@ -20,7 +20,7 @@ def main(argv) rows = [] 1.upto(cmd.count[surah_no]) do |ayah_no| res = cmd.pull_ayah(surah_no, ayah_no) - rows.concat([ayah_no, grep(res)]) + rows.push([ayah_no, grep(res)]) cmd.line.rewind.print "Surah #{surah_no} [#{ayah_no}/#{cmd.count[surah_no]}]" end cmd.write(surah_no, rows)