Code coverage report for string/unhyphenate.js

Statements: 100% (6 / 6)      Branches: 100% (0 / 0)      Functions: 100% (3 / 3)      Lines: 100% (5 / 5)     

All files » string/ » unhyphenate.js
1 2 3 4 5 6 7 8 9 10 111       1 6 6   1    
define(['../lang/toString'], function(toString){
    /**
     * Replaces hyphens with spaces. (only hyphens between word chars)
     */
    function unhyphenate(str){
        str = toString(str);
        return str.replace(/(\w)(-)(\w)/g, '$1 $3');
    }
    return unhyphenate;
});