text_extractor 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/text_extractor/version.rb +1 -1
- data/lib/text_extractor.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e5ad1f1e30ebbdf207ccbe8c978e1bdee81b5314
|
4
|
+
data.tar.gz: 9f7e016dc10d6c73e01b911f87663839473f37f4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3c8dffd2d4eeede251d2070be30e974fd92716daff4829a8a9375152ee25589346e1a1f9b0e371bb2ca79a1fbddc4d4918b9bb6ee930376a29392e69936d9440
|
7
|
+
data.tar.gz: baa8dd8967b230fc9397e8eface440064023675d072772fef0a0260de9c325e55ab74022e259cc94294f36c66ec8302f81d0848394b67bef476c634c2184d76f
|
data/lib/text_extractor.rb
CHANGED
@@ -66,10 +66,10 @@ class TextExtractor
|
|
66
66
|
end
|
67
67
|
|
68
68
|
def strip_record(regexp, strip: nil)
|
69
|
-
lines = regexp.source.
|
69
|
+
lines = regexp.source.split("\n")
|
70
70
|
prefix = lines.last
|
71
71
|
strip_record_by_line(lines, prefix, strip)
|
72
|
-
Regexp.new(lines.join.strip, regexp.options)
|
72
|
+
Regexp.new(lines.join("\n").strip, regexp.options)
|
73
73
|
end
|
74
74
|
|
75
75
|
def strip_record_by_line(lines, prefix, strip)
|