Skip to content

Commit c7da92c

Browse files
authored
fix(schema-updater): fix regression introduced with #720 regex when writing schema
1 parent b66766f commit c7da92c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/forest_liana/schema_file_updater.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ def perform
149149
file.puts pretty_print({
150150
collections: @collections,
151151
meta: @meta
152-
}).gsub(/\\/, '\\\\\\\\')
152+
}).gsub(/(?<!\\)(\\)(?!["\\])/, '\\\\\\1')
153153
end
154154
end
155155
end

0 commit comments

Comments
 (0)