Code coverage report for string/unCamelCase.js

Statements: 100% (8 / 8)      Branches: 100% (0 / 0)      Functions: 100% (3 / 3)      Lines: 100% (7 / 7)     

All files » string/ » unCamelCase.js
1 2 3 4 5 6 7 8 9 10 11 12 131       1 20 20 20 20   1    
define(['../lang/toString'], function(toString){
    /**
     * Add space between camelCase text.
     */
    function unCamelCase(str){
        str = toString(str);
        str = str.replace(/([a-z\xE0-\xFF])([A-Z\xC0\xDF])/g, '$1 $2')
        str = str.toLowerCase(); //add space between camelCase text
        return str;
    }
    return unCamelCase;
});