Skip to content

Commit b210634

Browse files
committed
fix(codemod): don't output YAML closing quote in description values
Multi-line quoted description values had the closing " included in the output, causing a trailing quote in the extracted text. Result: 284/289 deep equivalent
1 parent b5edb97 commit b210634

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/interscript/isc/codemod.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ def convert_metadata_block
237237
if @scanner.scan(/[^"\n]+/)
238238
@out << @scanner.matched
239239
elsif @scanner.scan(/"/)
240-
@out << @scanner.matched
240+
# Closing quote — don't output it (it's the YAML delimiter)
241241
break
242242
elsif @scanner.scan(/\n[ \t]+/)
243243
@out << " "

0 commit comments

Comments
 (0)