From 4461c5d7d9825a8707e48110337cd33c7df48662 Mon Sep 17 00:00:00 2001 From: Ofek Azulay Date: Thu, 24 Mar 2016 15:43:22 +0100 Subject: [PATCH 1/2] Added support for Hebrew and German strings --- index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/index.js b/index.js index 23608913..ce92a428 100644 --- a/index.js +++ b/index.js @@ -21,6 +21,8 @@ function is(x) { "trzynaście", // Polish "trece", // Spanish "tredici", // Italian + "dreizehn", // German + "שלוש עשרה", // Hebrew "13+0i", //Imaginary 13's "13 + 13i", "13i" From 659550faf5d511039faa1b75b28e32e196457b6a Mon Sep 17 00:00:00 2001 From: Ofek Azulay Date: Thu, 24 Mar 2016 15:53:05 +0100 Subject: [PATCH 2/2] Added tests for Hebrew and German --- test.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test.js b/test.js index 6d470d97..6b94e836 100644 --- a/test.js +++ b/test.js @@ -9,6 +9,8 @@ tap.equal(isThirteen('13', false), true); tap.equal(isThirteen('thirteen'), true); tap.equal(isThirteen('Thirteen'), true); +tap.equal(isThirteen('dreizehn'), true); +tap.equal(isThirteen('שלוש עשרה'), true); tap.equal(isThirteen('Remy Hadley'), true); tap.equal(isThirteen('https://scontent.cdninstagram.com/hphotos-xtf1/t51.2885-15/s320x320/e35/12237511_444845689040315_1101385461_n.jpg'), true);