From 1a886ec82f13a01253e5611aeb18e3c845e2668d Mon Sep 17 00:00:00 2001 From: rsiddharth Date: Sun, 24 Jun 2012 21:44:10 +0530 Subject: conversion/ConvertDirectory.java: only a small addition -- to print out the file that is under "conversion" conversion/FileSieve.java: update the regex to ignore hidden files, ".ttf" files. parsers/Header.java: * Now the blog post goes bettween the
&
tag, Header class was modified to reflect this change. * "Powered by scruf" line must go at the bottom of every html page that is generated by this program, Header class was modified to reflect this. parsers/Images.java: I have modified the "regex" and relevant code to make the "image description" optional. --- conversion/FileSieve.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'conversion/FileSieve.java') diff --git a/conversion/FileSieve.java b/conversion/FileSieve.java index 6a8a4bc..8d6c643 100644 --- a/conversion/FileSieve.java +++ b/conversion/FileSieve.java @@ -7,7 +7,7 @@ public class FileSieve implements FileFilter { // this method return true, if this file doesn't represent // a html file. public boolean accept(File pathname) { - Pattern pattern = Pattern.compile("(.+\\.(html|png|jpg|css|tar))|(.+?\\~)|(index)|(\\..+)"); + Pattern pattern = Pattern.compile("(.+\\.(html|png|jpg|css|tar|ttf))|(.+?\\~)|(index)|(\\..+)"); Matcher matcher = pattern.matcher(pathname.getName()); boolean bool = matcher.find(); return !bool; -- cgit v1.2.3