Last active
December 19, 2015 19:48
-
-
Save Cycymomo/6008519 to your computer and use it in GitHub Desktop.
140bytes - Digit letter to number
by @TheGwy at developpez.com
http://www.developpez.net/forums/d1362763/webmasters-developpement-web/javascript/ludique-defis-code-en-tweet/
This file contains hidden or 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
// 140bytes - http://www.developpez.net/forums/d1362763/webmasters-developpement-web/javascript/ludique-defis-code-en-tweet/ | |
(function parseNumbers(s){ | |
return s.replace(/ ?s?(.)\S*/g,function(a,b){return'zudtqciehn'.search(b)}) | |
})("un deux trois quatre cinq six sept huit neuf zero six six sept"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment