アルファベットの有限の繰り返しと、2 つの別々の RegEx の数字をチェックする RegEx がありますが、1 つの RegEx に結合しようとしていますが、常に true を返します。
// Alphabetes testing:
/([a-z])\1{4,}/.test("sd0") => false
/([a-z])\1{4,}/.test("adsssssd0") => true
// Numeric testing:
/([0-9])\1{3,}/.test("sd00000ds") => true
/([0-9])\1{3,}/.test("sd00s00ds") => false
/(([a-z])\1{4,})|(([0-9])\1{3,})/.test("sd0sds0sds") => true // always true
ありがとう。