photo-manager/lib/get-id.js

7 lines
134 B
JavaScript
Raw Normal View History

2023-10-04 01:24:49 +02:00
'use strict'
module.exports = exports = STR =>
STR.replace( /\s+/g, '' )
.replace( /[^\w\d\.,_-]/g, '-' )
.toUpperCase()