summaryrefslogtreecommitdiffstats
path: root/styling
diff options
context:
space:
mode:
authorrsiddharth <rsiddharth@ninthfloor.org>2013-03-23 18:34:43 +0530
committerrsiddharth <rsiddharth@ninthfloor.org>2013-03-23 18:34:43 +0530
commit5d7578f2181d0c370e51d6e169652fa5e8aa93c4 (patch)
treed3315a476f5892f2b94c506b285fcdf414da56dd /styling
parent5a612c683eb34d0878ec86491556cd8921d63e16 (diff)
modified: parsers/Images.java (Pattern for image recognition
updated. Now scruf can detect images with png|jpg|jpeg extension)x -------------- This line and the following will be ignored -------------- === modified file 'parsers/Images.java' --- a/parsers/Images.java 2012-11-30 13:18:40 +0000 +++ b/parsers/Images.java 2013-03-23 13:00:50 +0000 @@ -28,7 +28,7 @@ private String openTag = "<img src=\"$1\" alt=\" \\[$"; private String closeTag = " />"; public String parse(String fileContent) { - Pattern pattern = Pattern.compile("\\{\\{(.+?\\.(png|jpg))(\\|(.+?))?\\}\\}", Pattern.DOTALL); + Pattern pattern = Pattern.compile("\\{\\{(.+?\\.(png|jp[e]?g))(\\|(.+?))?\\}\\}", Pattern.DOTALL); Matcher matcher = pattern.matcher(fileContent); StringBuffer sbuffer = new StringBuffer(); StringBuilder replacementString =new StringBuilder();
Diffstat (limited to 'styling')
0 files changed, 0 insertions, 0 deletions