aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrsiddharth <rsiddharth@ninthfloor.org>2013-04-27 19:34:52 +0530
committerrsiddharth <rsiddharth@ninthfloor.org>2013-04-27 19:34:52 +0530
commitbfe590dd6b5a818087c04ae0d264fe8bbf1b21d3 (patch)
treefaaf72659dca7e0b9b9f25af4198a41e2a23a5e0
parent5d7578f2181d0c370e51d6e169652fa5e8aa93c4 (diff)
downloadscruf-bfe590dd6b5a818087c04ae0d264fe8bbf1b21d3.tar.gz
scruf-bfe590dd6b5a818087c04ae0d264fe8bbf1b21d3.tar.bz2
scruf-bfe590dd6b5a818087c04ae0d264fe8bbf1b21d3.tar.xz
scruf-bfe590dd6b5a818087c04ae0d264fe8bbf1b21d3.zip
modified: parsers/Images.java (now scruffy-markup accepts svg images)
-rw-r--r--parsers/Images.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/parsers/Images.java b/parsers/Images.java
index 7969840..8e0c566 100644
--- a/parsers/Images.java
+++ b/parsers/Images.java
@@ -28,7 +28,7 @@ public class Images implements Parser {
private String openTag = "<img src=\"$1\" alt=\" \\[$";
private String closeTag = " />";
public String parse(String fileContent) {
- Pattern pattern = Pattern.compile("\\{\\{(.+?\\.(png|jp[e]?g))(\\|(.+?))?\\}\\}", Pattern.DOTALL);
+ Pattern pattern = Pattern.compile("\\{\\{(.+?\\.(png|jp[e]?g|svg))(\\|(.+?))?\\}\\}", Pattern.DOTALL);
Matcher matcher = pattern.matcher(fileContent);
StringBuffer sbuffer = new StringBuffer();
StringBuilder replacementString =new StringBuilder();