Registry / utility / string-scrub

string-scrub

JSON →
library0.1.1rbrubygemsunverified

Provides String#scrub for Ruby 2.0.0 and 1.9.3 to clean invalid byte sequences.

gem install string-scrub
INSTALL
IMPORT
SIG · STRING-SCRUB
S
string-scrub
utilityrubyv0.1.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

StringScrub
require 'string/scrub'

Scrub invalid bytes from a string

require 'string/scrub' puts "hello\xFFworld".scrub
Debug
Known issues
gotchaThis gem is only needed for Ruby versions < 2.1; Ruby 2.1+ includes String#scrub natively.
fix
Remove the gem if using Ruby 2.1 or later.
affects: >= 0.1.0
Upgrade
Version history
0.1.1latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
11 hits · last 30 days
node
10
Resources
string-scrub — gem install string-scrub · libregistry