lib/edit.js
function filterTag(posts) {
      var reTag = new RegExp(tag);
      return posts.filter(function filterPosts(post) {
        return post.tags.data.some(function checkRe(postTag) {
          return reTag.test(postTag.name);
        });
      });
    }
function filterTag(posts) {
      var reTag = new RegExp(tag);
      return posts.filter(function filterPosts(post) {
        return post.tags.data.some(function checkRe(postTag) {
          return reTag.test(postTag.name);
        });
      });
    }
function filterTag ( posts ) { var reTag = new RegExp ( tag ) ; return posts . filter ( function filterPosts ( post ) { return post . tags . data . some ( function checkRe ( postTag ) { return reTag . test ( postTag . name ) ; } ) ; } ) ; }
filter the posts using a tag if supplied
filter the posts using a tag if supplied