compass-svg-templates 1.0.3 → 1.0.4
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/svg-templates/sass_extensions.rb +2 -1
- 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: 9efc00e7f733fdbaaaa6da22ced2f1e62aa92164
|
4
|
+
data.tar.gz: cfe29bc84119320544d73df8913ff39aa3cd9371
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e3ab182ba968cb69c32c2916fa2a3da8648d6a0da6fa45e4c8bacb38565e8b38b876015de69f516a437dbeb70401887aa088f56aa5e8904c03e5a4daf9c94d8c
|
7
|
+
data.tar.gz: 7a87d1d6f96bd3a1b6b2d604189d484853fc8a4bd6ec57fd5b02c01265786335f7beb08a168ba6544f3b6ff98889230ef4efd07060a3b3f471ba2aa744e4b86c
|
@@ -115,7 +115,8 @@ private
|
|
115
115
|
|
116
116
|
# Replace variables
|
117
117
|
variables.each do |key, value|
|
118
|
-
|
118
|
+
escaped_key = Regexp.escape(key.to_s)
|
119
|
+
data = data.gsub(/#\{\$#{escaped_key}(?:\|\|(.+?))?\}/, value.to_s)
|
119
120
|
end
|
120
121
|
|
121
122
|
# Replace undefined variables by their defaults or strip them entirely
|