text_extractor 0.1.2 → 0.1.3
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.rb +3 -3
- data/lib/text_extractor/version.rb +1 -1
- 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: f7789a07f712aa1892f43c31122ef8313a7f646b
|
4
|
+
data.tar.gz: dbcf38adc0418a078837f98f77f97b3987e65397
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c60db73cccad682036b86ee0b0ae29168a3d2e2806d0129814f5024c6998ed1dd2e6480510f3936cc38a98658f8ca8a46d27407acaf41ec3b0769687550c08da
|
7
|
+
data.tar.gz: 1eb622f02aa40b1cdd735bd99ff711986920d1eddf6a121fb8f3c30b55d239b89eada507aaa3e5b44799c0abd167f90bcccb6b6822f1571b57ca92fecdb1e457
|
data/lib/text_extractor.rb
CHANGED
@@ -77,9 +77,9 @@ class TextExtractor
|
|
77
77
|
|
78
78
|
lines.map! { |s| s.gsub(prefix.to_s, '') }
|
79
79
|
case strip
|
80
|
-
when :left then lines.map! { |s| "
|
81
|
-
when :right then lines.map! { |s| "#{s.rstrip}
|
82
|
-
when :both then lines.map! { |s| "
|
80
|
+
when :left then lines.map! { |s| "\[ \t\r\f]*#{s.lstrip}" }
|
81
|
+
when :right then lines.map! { |s| "#{s.rstrip}\[ \t\r\f]*" }
|
82
|
+
when :both then lines.map! { |s| "\[ \t\r\f]*#{s.strip}\[ \t\r\f]*" }
|
83
83
|
end
|
84
84
|
end
|
85
85
|
|