From 607c935e0d12bef7fc4182688d4158a47843ed52 Mon Sep 17 00:00:00 2001 From: Nicolas Stepien Date: Mon, 25 Mar 2013 00:52:23 +0100 Subject: [PATCH] Simplify the grunt-watched files pattern. --- Gruntfile.js | 9 ++++----- src/features.coffee | 2 -- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/Gruntfile.js b/Gruntfile.js index 5ffd78391..7a75e37a7 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -94,11 +94,10 @@ module.exports = function(grunt) { files: [ 'Gruntfile.js', 'package.json', - 'lib/**/*.coffee', - 'src/**/*.coffee', - 'src/**/*.js', - 'css/**/*.css', - 'img/*' + 'lib/**/*', + 'src/**/*', + 'css/**/*', + 'img/**/*' ], tasks: 'default' } diff --git a/src/features.coffee b/src/features.coffee index 36bb35bdd..e9b36044f 100644 --- a/src/features.coffee +++ b/src/features.coffee @@ -87,9 +87,7 @@ Header = else if /-full/.test t a.textContent = "/#{board}/ - #{a.title}" else if /-(index|catalog|text)/.test t - c.log t, t.match /-(index|catalog)/ if m = t.match /-(index|catalog)/ - c.log m a.setAttribute 'data-only', m[1] a.href = "//boards.4chan.org/#{board}/" a.href += 'catalog' if m[1] is 'catalog'