السلام عليكم,
عندما نحدد الارقام المسموحة كالمثال هذا (١-٢) لماذا النتيجة true؟
const msg = 'Hello there! My name is Ibrahim and my age is 20';
const regex = /age is [1-2]+/;
const check_criteria = regex.test(msg);
console.log(check_criteria);
output: true