diff options
Diffstat (limited to 'src')
| -rwxr-xr-x | src/feed.clj | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/feed.clj b/src/feed.clj index ae7f54d..d3cf3f6 100755 --- a/src/feed.clj +++ b/src/feed.clj @@ -34,7 +34,7 @@ WHERE NOT EXISTS (SELECT 1 ; http://stackoverflow.com/questions/169625/regex-to-check-if-valid-url-that-ends-in-jpg-png-or-gif (def *image-regex* - #"(?i)https?://(?:[a-z\-]+\.)+[a-z]{2,6}(?:/[^/#?]+)+\.(?:jpeg|jpg|gif|png)") + #"(?i)https?://(?:[a-z0-9\-]+\.)+[a-z]{2,6}(?:/[^/#?]+)+\.(?:jpeg|jpg|gif|png)") (defn extract-images [text] (re-seq *image-regex* text)) |
