photo-manager/lib/get-id.js

7 lines
134 B
JavaScript

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