Sha256: 8471e869ca1edf69ecead5aa1c7ead7537ed2b29f7dd49f4c01ac088b92292c0
Contents?: true
Size: 333 Bytes
Versions: 1
Compression:
Stored size: 333 Bytes
Contents
module Wovnrb class ValueAgent def self.normalize_text(src) src.gsub(/[\ufffd]/, "\b") .gsub(/[\n \t\u0020\u0009\u000C\u200B\u000D\u000A]+/, ' ') .gsub(/^[\s\u00A0\uFEFF\u1680\u180E\u2000-\u200A\u202F\u205F\u3000]+|[\s\u00A0\uFEFF\u1680\u180E\u2000-\u200A\u202F\u205F\u3000]+$/, '') end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
wovnrb-1.1.0 | lib/wovnrb/services/value_agent.rb |