7 lines
134 B
JavaScript
7 lines
134 B
JavaScript
|
'use strict'
|
||
|
|
||
|
module.exports = exports = STR =>
|
||
|
STR.replace( /\s+/g, '' )
|
||
|
.replace( /[^\w\d\.,_-]/g, '-' )
|
||
|
.toUpperCase()
|