Created
August 29, 2012 20:08
-
-
Save zackdever/3518171 to your computer and use it in GitHub Desktop.
lots of example a.m. p.m. periods
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// this isn't all the possible valid periods, but it's a good batch | |
var periods = [] | |
, seed = ['pm', 'p', 'p.m.', 'pm.', 'p.m']; | |
for (var i=0; i<seed.length; i++) { | |
var s = seed[i]; | |
periods.push(s); | |
periods.push(s.toUpperCase()); | |
periods.push(s.replace('m', 'M')); | |
periods.push(s.replace('p', 'P')); | |
periods.push(s.replace('p', 'a')); | |
periods.push(s.toUpperCase()); | |
periods.push(s.toUpperCase().replace('M', 'm')); | |
periods.push(s.replace('a', 'A')); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment