autostacker24 1.0.28 → 1.0.29
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/autostacker24/template_preprocessor.rb +1 -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: df56d45fb2e6e40870f0fa6cb3de0360b349cf85
|
4
|
+
data.tar.gz: f6b39bbe0758e8680be8abcb8e976c45affe74d6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ad54f8ee8dc97d4aa2b7e95e69a2cf8c1e2780cebdaaa8e52e1f278df6763ca56729c80bd5176d216defeb2d101b8973fe65be1741083672e2f86b5ac071608d
|
7
|
+
data.tar.gz: 9a3467780a931cc3184f8a1b038d776c6f15cbdd1f150c3b2aa985f0776bde70cb2f35748604b434a9887d819f7191e05e719339c58a69b065a400e375813cd3
|
@@ -6,7 +6,7 @@ module AutoStacker24
|
|
6
6
|
module Preprocessor
|
7
7
|
|
8
8
|
def self.preprocess(template)
|
9
|
-
if template =~ /^\s
|
9
|
+
if template =~ /^\s*\/{2}\s*/i
|
10
10
|
template = template.gsub(/(\s*\/\/.*$)|(".*")/) {|m| m[0] == '"' ? m : ''} # replace comments
|
11
11
|
template = preprocess_json(JSON(template)).to_s
|
12
12
|
end
|