Sha256: 4824eea41fcf002fe9475454f70b6bd236be864ee35f6fe0b86d99c7a10ff55e
Contents?: true
Size: 338 Bytes
Versions: 4
Compression:
Stored size: 338 Bytes
Contents
# coding: utf-8 module Verse class Sanitizer ANSI_MATCHER = /(\[)?\033(\[)?[;?\d]*[\dA-Za-z](\])?/.freeze # Strip ANSI characters from the text # # @param [String] text # # @return [String] # # @api private def sanitize(text) text.gsub(ANSI_MATCHER, '') end end # Sanitizer end # Verse
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
verse-0.2.1 | lib/verse/sanitizer.rb |
verse-0.2.0 | lib/verse/sanitizer.rb |
verse-0.1.1 | lib/verse/sanitizer.rb |
verse-0.1.0 | lib/verse/sanitizer.rb |