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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e5ad1f1e30ebbdf207ccbe8c978e1bdee81b5314
4
- data.tar.gz: 9f7e016dc10d6c73e01b911f87663839473f37f4
3
+ metadata.gz: f7789a07f712aa1892f43c31122ef8313a7f646b
4
+ data.tar.gz: dbcf38adc0418a078837f98f77f97b3987e65397
5
5
  SHA512:
6
- metadata.gz: 3c8dffd2d4eeede251d2070be30e974fd92716daff4829a8a9375152ee25589346e1a1f9b0e371bb2ca79a1fbddc4d4918b9bb6ee930376a29392e69936d9440
7
- data.tar.gz: baa8dd8967b230fc9397e8eface440064023675d072772fef0a0260de9c325e55ab74022e259cc94294f36c66ec8302f81d0848394b67bef476c634c2184d76f
6
+ metadata.gz: c60db73cccad682036b86ee0b0ae29168a3d2e2806d0129814f5024c6998ed1dd2e6480510f3936cc38a98658f8ca8a46d27407acaf41ec3b0769687550c08da
7
+ data.tar.gz: 1eb622f02aa40b1cdd735bd99ff711986920d1eddf6a121fb8f3c30b55d239b89eada507aaa3e5b44799c0abd167f90bcccb6b6822f1571b57ca92fecdb1e457
@@ -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| "\\s*#{s.lstrip}" }
81
- when :right then lines.map! { |s| "#{s.rstrip}\\s*" }
82
- when :both then lines.map! { |s| "\\s*#{s.strip}\\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
 
@@ -1,5 +1,5 @@
1
1
  class TextExtractor
2
2
  def self.version
3
- '0.1.2'
3
+ '0.1.3'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: text_extractor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Miller