We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 41d3f41 commit bff4739Copy full SHA for bff4739
crates/oxide/src/extractor/pre_processors/ruby.rs
@@ -156,6 +156,7 @@ impl PreProcessor for Ruby {
156
b'[' => b']',
157
b'(' => b')',
158
b'{' => b'}',
159
+ b' ' => b'\n',
160
_ => {
161
cursor.advance();
162
continue;
@@ -197,7 +198,10 @@ impl PreProcessor for Ruby {
197
198
199
// End of the pattern, replace the boundary character with a space
200
_ if cursor.curr == boundary => {
- result[cursor.pos] = b' ';
201
+ if boundary != b'\n' {
202
+ result[cursor.pos] = b' ';
203
+ }
204
+
205
break;
206
}
207
0 commit comments