(input)
| 126 | |
| 127 | // In certain places, # and \ need to be escaped as \# and \\. |
| 128 | function tapEscape(input) { |
| 129 | let result = StringPrototypeReplaceAll(input, '\b', '\\b'); |
| 130 | result = StringPrototypeReplaceAll(result, '\f', '\\f'); |
| 131 | result = StringPrototypeReplaceAll(result, '\t', '\\t'); |
| 132 | result = StringPrototypeReplaceAll(result, '\n', '\\n'); |
| 133 | result = StringPrototypeReplaceAll(result, '\r', '\\r'); |
| 134 | result = StringPrototypeReplaceAll(result, '\v', '\\v'); |
| 135 | result = StringPrototypeReplaceAll(result, '\\', '\\\\'); |
| 136 | result = StringPrototypeReplaceAll(result, '#', '\\#'); |
| 137 | return result; |
| 138 | } |
| 139 | |
| 140 | function jsToYaml(indent, name, value, seen) { |
| 141 | if (value === undefined) { |
no outgoing calls
no test coverage detected
searching dependent graphs…