Skip to content

TagSpaces is an offline, open source, document manager with tagging support

filter tags by digit title && settings default value

Stanimir Marinov859a5723ba2e
diff --git a/app/reducers/settings-default.js b/app/reducers/settings-default.js
index ebc5575a6..fe8427612 100644
--- a/app/reducers/settings-default.js
+++ b/app/reducers/settings-default.js
@@ -48,6 +48,7 @@ export default {
lastOpenedLocation: '',
useDefaultLocation: false, // TODO for remove
persistTagsInSidecarFile: false, // old name writeMetaToSidecarFile -> persistTagsInSidecarFile
+ addTagsToLibrary: false,
webDavPath: 'oc/remote.php/webdav',
interfaceLanguage: 'en',
useTrashCan: true,
diff --git a/app/reducers/tagging-actions.js b/app/reducers/tagging-actions.js
index 9d26ce319..8dc9f4c01 100644
--- a/app/reducers/tagging-actions.js
+++ b/app/reducers/tagging-actions.js
@@ -66,7 +66,7 @@ const actions = {
// filter existed in tagLibrary
const uniqueTags = [];
processedTags.map((tag) => {
- if (taglibrary.findIndex(tagGroup => tagGroup.children.findIndex(obj => obj.id === tag.id) !== -1) === -1) {
+ if (taglibrary.findIndex(tagGroup => tagGroup.children.findIndex(obj => obj.id === tag.id) !== -1) === -1 && !/^(?:\d+~\d+|\d+)$/.test(tag.title)) {
uniqueTags.push(tag);
}
return true;