Timeline for Is my name official?
Current License: CC BY-SA 3.0
12 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
May 22, 2019 at 20:09 | review | Suggested edits | |||
May 23, 2019 at 1:52 | |||||
Jun 1, 2018 at 12:37 | comment | added | edc65 | @NoOneIsHere nice idea, worth a try, but it does not | |
Jun 1, 2018 at 5:09 | comment | added | NoOneIsHere |
Does /^[A-Z][a-z]+$/.test work? i.e. n=/^[A-Z][a-z]+$/.test;n(str) ?
|
|
Dec 28, 2015 at 18:17 | comment | added | Mwr247 | Wrote this exact code before even looking at the answers, knowing full well someone else would have already done it lol... Well done =) | |
Dec 24, 2015 at 18:16 | comment | added | edc65 | @CRDrost post it as a ES5 solution (pls with an explanation) | |
Dec 24, 2015 at 17:26 | comment | added | CR Drost |
For only 4 bytes more you get ES5 compliance: /./.test.bind(/^[A-Z][a-z]+$/)
|
|
Dec 24, 2015 at 15:20 | comment | added | SuperJedi224 | @edc65 It is valid though. | |
Dec 24, 2015 at 9:16 | comment | added | edc65 | @user81655 an array as a truthy value is too forced IMHO | |
Dec 24, 2015 at 4:09 | comment | added | user81655 |
One byte less: n=>n.match`^[A-Z][a-z]+$`
|
|
Dec 24, 2015 at 0:08 | comment | added | SuperJedi224 | Darn, you beat me to it. You also outgolfed my version by 5 bytes. | |
Dec 23, 2015 at 23:15 | history | edited | edc65 | CC BY-SA 3.0 |
added 1 character in body
|
Dec 23, 2015 at 23:10 | history | answered | edc65 | CC BY-SA 3.0 |