mirror of https://github.com/Lissy93/dashy.git
🐛 Fixes numbers being removed from tags (#430)
This commit is contained in:
parent
35ccf1bf7b
commit
6e2ae6d3fc
|
@ -226,7 +226,7 @@ export default {
|
|||
if (newItem.hotkey) newItem.hotkey = parseInt(newItem.hotkey, 10);
|
||||
const strToTags = (str) => {
|
||||
const tagArr = str.split(',');
|
||||
return tagArr.map((tag) => tag.trim().toLowerCase().replace(/[^a-z]+/, ''));
|
||||
return tagArr.map((tag) => tag.trim().toLowerCase().replace(/[^a-z0-9]+/, ''));
|
||||
};
|
||||
const strToBool = (str) => {
|
||||
if (str === undefined) return undefined;
|
||||
|
|
Loading…
Reference in New Issue