File "strip-slashes.js"
Full Path: /home/warrior1/public_html/wp-content/plugins/astra-sites/inc/lib/onboarding/assets/src/utils/strip-slashes.js
File size: 231 bytes
MIME-type: text/plain
Charset: utf-8
/**
* Strip slashes from a string.
*
* @param {string} str String to strip slashes from.
* @return {string} String with slashes stripped.
*/
export const stripSlashes = ( str ) => {
return str.replace( /^\/+|\/+$/g, '' );
};