easol-canvas 4.16.0 → 4.17.0
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/canvas/validators/html.rb +4 -1
- data/lib/canvas/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2396c564e638650f1f50b0f81e6b79bc9cc3020304f559f1b050034721056d58
|
4
|
+
data.tar.gz: ebfb662861d72d0e7c9777343ee8aee6330f348dc132575d4ca4081c0f7249d4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a64ab47a1802570ed45ff6a524cd1648a9025b7082a290814049aaec927c363a952299d4e15a311b826735301d95c79cfcb036ff5a1c1cf635f5a989d99e878e
|
7
|
+
data.tar.gz: 365bb2ee7c14ff920f6a15558a01c25cc492814616299ab8159f88a9effd36f645a92566e4a5ad0f10ddf0ff3a4880c56c198e251906f47775bced5a13614b9f
|
@@ -34,7 +34,10 @@ module Canvas
|
|
34
34
|
# same number of characters, so that the linter reports the
|
35
35
|
# correct character number.
|
36
36
|
def strip_out_liquid(html)
|
37
|
-
|
37
|
+
# First replace liquid tags with spaces
|
38
|
+
html = html.gsub(LIQUID_TAG) { |tag| " " * tag.size }
|
39
|
+
# Then replace liquid variables with x's
|
40
|
+
html.gsub(LIQUID_VARIABLE) { |var| "x" * var.size }
|
38
41
|
end
|
39
42
|
|
40
43
|
# We want to strip out the front matter and replace it
|
data/lib/canvas/version.rb
CHANGED