Return a snake-cased input.
Japanese unicode can introduce some error, especially if you work with string and parsing.
For instance, string-numbers can appear exactly similar but aren't: this are totally different unicode codes:
//Japanese number Unicode
"0123456789"
//Universal number Unicode:
"0123456789"
You can see that
0
!=0
and also that any characters have some "left and right spaces".The main goal of this function is to transform any Japanese unicode
0123456789
to0123456789
0.1.0
input (string)
(string)
: Returns classic unicode number
piupiu.formatJapaneseUnicode('0');
// '0'
piupiu.formatJapaneseUnicode("1992年10月26日");
// '1992年10月26日'
piupiu.formatJapaneseUnicode('ToTo');
// 'ToTo'
piupiu.formatJapaneseUnicode(null);
// undefined