diff options
author | rsiddharth <rsiddharth@ninthfloor.org> | 2012-06-24 12:06:09 +0530 |
---|---|---|
committer | rsiddharth <rsiddharth@ninthfloor.org> | 2012-06-24 12:06:09 +0530 |
commit | 250cf4befea71a2ec6d917d104d20c702e7d4551 (patch) | |
tree | da1e014583128b5c9e539b5d877e68950191bff9 /conversion | |
parent | 8bcd7f58acd38f5d5e1731f89be4a10a79d0fdb7 (diff) |
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.
Diffstat (limited to 'conversion')
-rw-r--r-- | conversion/FileSieve.java | 2 |
1 files changed, 1 insertions, 1 deletions
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; |