Sha256: dba03c446694124d1fca7738ceab51cf1140bcffa85c7d93aa7d8f848f741432
Contents?: true
Size: 311 Bytes
Versions: 2
Compression:
Stored size: 311 Bytes
Contents
# frozen_string_literal: true module SimpleTextExtract module FormatExtractor class DocX < Base def extract return nil if `command -v unzip`.empty? `unzip -p #{Shellwords.escape(file.path)} | grep '<w:t' | sed 's/<[^<]*>//g' | grep -v '^[[:space:]]*$'` end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
simple_text_extract-0.1.1 | lib/simple_text_extract/format_extractor/doc_x.rb |
simple_text_extract-0.1.0 | lib/simple_text_extract/format_extractor/doc_x.rb |