mirror of
https://github.com/Lissy93/dashy.git
synced 2025-07-27 07:34:43 +02:00
🐛 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);
|
if (newItem.hotkey) newItem.hotkey = parseInt(newItem.hotkey, 10);
|
||||||
const strToTags = (str) => {
|
const strToTags = (str) => {
|
||||||
const tagArr = str.split(',');
|
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) => {
|
const strToBool = (str) => {
|
||||||
if (str === undefined) return undefined;
|
if (str === undefined) return undefined;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user