nghuuphuoc/bootstrapvalidator — pull request #793 by shamiao (2014-09-06 17:22:33+00:00)
Title: Add citizen identification number of China (Mainland) to validator "id".

A new validator for a population of over 1.3 billion.

### Rules
1. An 18 or 15 digit code. (15 digit system was once used, depracated at 1999)
1. A valid administrative division code published by National Bureau of Statistics.
1. A valid date of birth.
1. Any 3 digits as order number.
1. A valid checksum digit.

All details are mentioned in code.

### Examples
- Valid: 450202201409072332
- Valid: 22011219930407001X (last digit used as checksum may be number or "X")
- Invalid: 999999199304070016 (nonexistent administrative division)
- Invalid: 220112190002290016 (invalid date of birth)
- Inalid: 220112199304070019 (invalid checksum digit)
- Valid: 110108601017023
- Invalid: 999999601017023 (nonexistent administrative division)
- Invalid: 110108999999023 (invalid date of birth)

Various test cases (including examples above, and several other real codes I collected) are checked by existing validators on Chinese Internet.

### Known Issues
- Both `/dist/js/bootstrapValidator.js` and `/dist/js/bootstrapValidator.min.js` aren't updated yet.
- `china_admin_div_codes` table makes a significant increasement of minified code size by 8.04 KiB (1.87 KiB gzipped).
- JS compatibility untested.