From 250cf4befea71a2ec6d917d104d20c702e7d4551 Mon Sep 17 00:00:00 2001 From: rsiddharth Date: Sun, 24 Jun 2012 12:06:09 +0530 Subject: Two files were modified (bug fix): --> conversion/FileSieve.java : regex modified to ignore hidden files. --> parsers/Images.java : html tag (for image) was erroneous, it was rectified and as a consequence we got rid of 3 lines of code. --- conversion/FileSieve.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'conversion') diff --git a/conversion/FileSieve.java b/conversion/FileSieve.java index e0a5166..6a8a4bc 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))|(.+?\\~)|(index)|(\\..+)"); Matcher matcher = pattern.matcher(pathname.getName()); boolean bool = matcher.find(); return !bool; -- cgit v1.2.3