packages/hexo-cli-extras/lib/edit.js
// filter the posts using a layout if supplied
filter the posts using a layout if supplied
filter the posts using a layout if supplied
function filterLayout(posts, layout) {
        var reLayout = new RegExp(layout, 'i');
        return posts.filter(function filterPosts(post) {
          return reLayout.test(post.layout);
        });
      }
function filterLayout ( posts , layout ) { var reLayout = new RegExp ( layout , 'i' ) ; return posts . filter ( function filterPosts ( post ) { return reLayout . test ( post . layout ) ; } ) ; }
filter the posts using a layout if supplied
filter the posts using a layout if supplied