6 lines
106 B
JavaScript
6 lines
106 B
JavaScript
"use strict";
|
|
|
|
module.exports = function(orig) {
|
|
return orig.toLowerCase().replace(/[^a-z0-9]/, "-");
|
|
};
|