Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function niceURL (e) {
const input = e.target
// stripping out the (in)definite article (the/a/an) and replacing spaces and other chars with a hyphen
input.value = removeIndefiniteArticles(input.value).replace(/[\s£&$*_+~.()'"!:@]+/g, '-').toLowerCase()
}
}