All Downloads are FREE. Search and download functionalities are using the official Maven repository.

node_modules.bower.lib.node_modules.mout.src.string.unhyphenate.js Maven / Gradle / Ivy

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;
});




© 2015 - 2024 Weber Informatics LLC | Privacy Policy