packages/hexo-cli-extras/lib/edit.js
// filter the posts using a tag if supplied
filter the posts using a tag if supplied
filter the posts using a tag if supplied
function filterTag(posts, tag) {
        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 , tag ) { 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