mirror of
https://github.com/thelounge/thelounge
synced 2024-11-22 20:13:07 +00:00
parent
d8f2d7fc10
commit
53ebee195c
2 changed files with 4 additions and 1 deletions
|
@ -1,5 +1,7 @@
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
|
const escape = require("css.escape");
|
||||||
|
|
||||||
module.exports = function(orig) {
|
module.exports = function(orig) {
|
||||||
return orig.toLowerCase().replace(/[^a-z0-9]/, "-");
|
return escape(orig.toLowerCase());
|
||||||
};
|
};
|
||||||
|
|
|
@ -66,6 +66,7 @@
|
||||||
"babel-loader": "7.1.2",
|
"babel-loader": "7.1.2",
|
||||||
"babel-preset-env": "1.6.0",
|
"babel-preset-env": "1.6.0",
|
||||||
"chai": "4.1.1",
|
"chai": "4.1.1",
|
||||||
|
"css.escape": "1.5.1",
|
||||||
"emoji-regex": "6.5.1",
|
"emoji-regex": "6.5.1",
|
||||||
"eslint": "4.5.0",
|
"eslint": "4.5.0",
|
||||||
"font-awesome": "4.7.0",
|
"font-awesome": "4.7.0",
|
||||||
|
|
Loading…
Reference in a new issue