zhongrj
2025-11-24 276323dce9613867abb3f58a4cc2abbfb2fd0dea
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
export default {
    userTags: function(tags){
        // Tags starting with a "." are considered hidden or system tags
        // and should not be displayed to end users via the UI
        if (Array.isArray(tags)){
            return tags.filter(t => !t.startsWith("."));
        }else return [];
    },
 
    systemTags: function(tags){
        if (Array.isArray(tags)){
            return tags.filter(t => t.startsWith("."));
        }else return [];
    },
 
    combine: function(user, system){
        if (Array.isArray(user) && Array.isArray(system)){
            return user.concat(system);
        }else throw Error("Invalid parameters");
    }
}