There was an error while loading. Please reload this page.
1 parent c3b7cac commit 2396827Copy full SHA for 2396827
1 file changed
exe/codemod-imp-to-isc
@@ -253,7 +253,11 @@ module Interscript
253
break
254
end
255
256
- elsif @scanner.scan(/(?:\A|\n)([ \t]+)notes[ \t]*:[ \t]*"/)
+ elsif @scanner.scan(/(?:\A|\n)([ \t]+)notes[ \t]*:[ \t]*\[\]/)
257
+ # `notes: []` — empty notes list
258
+ indent = @scanner[1]
259
+ @out << "\n#{indent}notes { }"
260
+ elsif @scanner.scan(/(?:\A|\n)([ \t]+)notes[ \t]*:[ \t]*"[ \t]*\n/)
261
# `notes: "X"` — single quoted-string note value
262
indent = @scanner[1]
263
@out << "\n#{indent}notes {\n#{indent} note \""
0 commit comments