summaryrefslogtreecommitdiffstats
path: root/conversion/FileSieve.java
diff options
context:
space:
mode:
authorrsiddharth <rsiddharth@ninthfloor.org>2012-06-24 21:44:10 +0530
committerrsiddharth <rsiddharth@ninthfloor.org>2012-06-24 21:44:10 +0530
commit1a886ec82f13a01253e5611aeb18e3c845e2668d (patch)
tree32567177f7b4b91b14947c903b330bad7673e726 /conversion/FileSieve.java
parent250cf4befea71a2ec6d917d104d20c702e7d4551 (diff)
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 <article> & </article> 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.
Diffstat (limited to 'conversion/FileSieve.java')
-rw-r--r--conversion/FileSieve.java2
1 files changed, 1 insertions, 1 deletions
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;