discourse_fastimage 2.0.1 → 2.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/fastimage.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 32e2a6bf8727bcb2595ef2532ed4aff1b4c0aea4
|
|
4
|
+
data.tar.gz: 130215f95f4bc5fa2f30a03adb6771c2d513d5ef
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e1f6fe0cd2fdea8cf8c5d75a8684e29be93fa6eb5243ef613116d86ad4ba2831bf4062fa0bf6061de545fc313923476436ff83c53ad8a0a7cd12ac3548c2e35e
|
|
7
|
+
data.tar.gz: 5601069e36378b0d6bb6b41194ff7273a81f9caa3abe009965ac68b6d2660f0cee98194344c12da6dad4de5af9da4a702c95110aae3a5843457e52fbd74b9739
|
data/lib/fastimage.rb
CHANGED
|
@@ -480,8 +480,8 @@ class FastImage
|
|
|
480
480
|
first_100_characters = @stream.peek(100) rescue nil
|
|
481
481
|
return :svg if first_100_characters && first_100_characters.include?("<svg")
|
|
482
482
|
|
|
483
|
-
|
|
484
|
-
return :svg if
|
|
483
|
+
first_200_characters = @stream.peek(200) rescue nil
|
|
484
|
+
return :svg if first_200_characters && first_200_characters.include?("<svg")
|
|
485
485
|
|
|
486
486
|
raise UnknownImageType
|
|
487
487
|
else
|