As the title summarises, valid_sg_phone_number() only validates Singapore fixed line numbers which start with the digit 6. Mobile numbers do not validate as they start either with 8 or 9. Numbers with the country code included e.g. +65 61234567 also do not validate.

For reference, see the Wikipedia page on Singapore phone numbers.

Attached is a patch to address these two issues.

CommentFileSizeAuthor
Patch to fix phone.sg.inc709 bytesdescender

Comments

thierry_gd’s picture

Status: Active » Fixed

Taken into account in 6.2.18 release

Status: Fixed » Closed (fixed)
Issue tags: -number, -validation, -singapore, -phone

Automatically closed -- issue fixed for 2 weeks with no activity.