diff options
| author | RblSb <msrblsb@gmail.com> | 2020-02-25 11:58:00 +0300 |
|---|---|---|
| committer | RblSb <msrblsb@gmail.com> | 2020-02-25 11:58:00 +0300 |
| commit | 93410166580465608c370bb36cdc2b953e43b965 (patch) | |
| tree | 134d5401111335014a45cfd2b2528904e42a1b5b /default-config.json | |
| parent | d934830a64b915af0b7e8031cb5ef927534c5e86 (diff) | |
Html escapism
Diffstat (limited to 'default-config.json')
| -rw-r--r-- | default-config.json | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/default-config.json b/default-config.json index efbcf30..ec00b60 100644 --- a/default-config.json +++ b/default-config.json @@ -10,8 +10,8 @@ ], "filters": [ { - "name": "image", "regex": "(http|https)(:\\/\\/.*\\.)(png|jpg|gif|jpeg)", "flags": "g", - "replace": "<a href='$1$2$3' target='_blank'><img src='$1$2$3' style='max-width:200px; max-height:200px' /></a>" + "name": "image", "regex": "(http|https)(:\\/\\/.*\\.)(png|jpg|gif|jpeg)([^ ,]*)", "flags": "g", + "replace": "<a href='$1$2$3' target='_blank'><img src='$1$2$3$4' style='max-width:200px; max-height:200px' /></a>" } ] } |
