src/inventory.js
/**
     * Finds all stacks matching the given tag and level range.
     * 
     * @param {string} tagSpec
     */
Finds all stacks matching the given tag and level range.

@param {string} tagSpec
Finds all stacks matching the given tag and level range . @param { string } tagSpec
findMatchingTag(tagSpec) {
        let m = tagSpec.match(tagRegexp);
        if ( !m ) {
            return [];
        }
        return this.items.filter(st => {
            return itemMatchesTagSpec(st.item, m, tagSpec);
        });
    }
findMatchingTag ( tagSpec ) { let m = tagSpec . match ( tagRegexp ) ; if ( ! m ) { return [ ] ; } return this . items . filter ( st => { return itemMatchesTagSpec ( st . item , m , tagSpec ) ; } ) ; }
Finds all stacks matching the given tag and level range.
Finds all stacks matching the given tag and level range .