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 f381118 commit 7f34f3fCopy full SHA for 7f34f3f
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'#',
160
b' ' => b'\n',
161
_ => {
162
cursor.advance();
@@ -283,6 +284,11 @@ mod tests {
283
284
"%p has a \" quote\n# this should be removed\n%p has a \" quote",
285
"%p has a \" quote\n \n%p has a \" quote"
286
),
287
+
288
+ (
289
+ "%w#this text is kept# # this text is not",
290
+ "%w this text is kept ",
291
+ ),
292
] {
293
Ruby::test(input, expected);
294
}
0 commit comments