Repository: validatorjs/validator.js (JavaScript)

Issue:
isMobilePhone accept invalid phone numbers
**Describe the bug**
A clear and concise description of what the bug is.

`isMobilePhone` successfully validates invalid numbers (see examples below).
I suppose the problem is in the next regular expressions:
`'ro-RO': /^(\+?4?0)\s?7\d{2}(\/|\s|\.|\-)?\d{3}(\s|\.|\-)?\d{3}$/,`
`'ms-MY': /^(\+?6?01){1}(([0145]{1}(\-|\s)?\d{7,8})|([236789]{1}(\s|\-)?\d{7}))$/,`

**Examples**
If applicable, add screenshots to help explain your problem.

The next numbers will be accepted as valid even though the are not: 
+0711419752
+0765351689
+0111419752

**Additional context**
Validator.js version: 13.7.0
Node.js version: v18.9.1
OS platform: [windows, linux, macOS, etc] macOS



Discussion:
@ValeriyaZavozova - the above bug is for ro-RO locale (i.e Romania) and ms-MY locale (i.e Malaysia)?
Hi @ValeriyaZavozova I am interested in this issue, Can you please assign this to me ?
Thanks.
@meeraj257  I found only this two cases
Could anyone verify if - 01468987837  is valid
and are these 088387675, 16-2838768 invalid? for ms-my
@VarnikaB I researched a little on Malaysian telephony on the [relevant Wikipedia page](https://en.wikipedia.org/wiki/Telephone_numbers_in_Malaysia#Mobile_phone_codes_and_IP_telephony). From what I gathered from my research, here's what I can conclude about those numbers.

`088387675` is an east Malaysian landline number; it is **not a mobile phone number**. In the area code, the first digit, ignoring the leading zero, is eight, but it must be one. (Also, if we wanted to convert this into a mobile number, the successor number needs one more digit, but that's not the main point I want to emphasize here.)

`01468987837` is invalid. This number has an extra digit in the sequence of digits after the area code (014). There should only be seven digits (in this case) after the area code, not eight.

`16-2838768` is an invalid number. It does not start with the number zero.

ok

hi Please assign it to me. I am interested in this 
> hi Please assign it to me. I am interested in this

The maintainers in this repo don't typically assign issues to contributors. Feel free to make a PR, of course! 
FWIW: I can confirm that the numbers return "true" with isMobilePhone:

+0711419752
+0765351689
+0111419752

that last one is similarly also reported here: https://github.com/validatorjs/validator.js/issues/1066

both are caused by the regexp optionally matching the country code and allowing numbers to also start with 0
I'll take a stab at fixing these in the current version this evening.

For a more future proof solution, there also is a discussion going on here #2124 
that +0111419752 will be fixed with PR #2155

will now also take a look at those issues caused by the Romanian Regexp
+0711419752
+0765351689

those types of numbers will be fixed by https://github.com/validatorjs/validator.js/pull/2156



Patch:
diff --git a/src/lib/isMobilePhone.js b/src/lib/isMobilePhone.js
index a5424ff34..a4a46f1f1 100644
--- a/src/lib/isMobilePhone.js
+++ b/src/lib/isMobilePhone.js
@@ -131,7 +131,7 @@ const phones = {
   'pt-BR': /^((\+?55\ ?[1-9]{2}\ ?)|(\+?55\ ?\([1-9]{2}\)\ ?)|(0[1-9]{2}\ ?)|(\([1-9]{2}\)\ ?)|([1-9]{2}\ ?))((\d{4}\-?\d{4})|(9[1-9]{1}\d{3}\-?\d{4}))$/,
   'pt-PT': /^(\+?351)?9[1236]\d{7}$/,
   'pt-AO': /^(\+244)\d{9}$/,
-  'ro-RO': /^(\+?4?0)\s?7\d{2}(\/|\s|\.|\-)?\d{3}(\s|\.|\-)?\d{3}$/,
+  'ro-RO': /^(\+?40|0)\s?7\d{2}(\/|\s|\.|-)?\d{3}(\s|\.|-)?\d{3}$/,
   'ru-RU': /^(\+?7|8)?9\d{9}$/,
   'si-LK': /^(?:0|94|\+94)?(7(0|1|2|4|5|6|7|8)( |-)?)\d{7}$/,
   'sl-SI': /^(\+386\s?|0)(\d{1}\s?\d{3}\s?\d{2}\s?\d{2}|\d{2}\s?\d{3}\s?\d{3})$/,


Test patch:
diff --git a/test/validators.test.js b/test/validators.test.js
index 0405a7d2f..6289a51b1 100644
--- a/test/validators.test.js
+++ b/test/validators.test.js
@@ -8856,6 +8856,8 @@ describe('Validators', () => {
           '740123456',
           '+40640123456',
           '+40210123456',
+          '+0765351689',
+          '+0711419752',
         ],
       },
       {