From 163c34c2eae5a875a97841323bbc581300e33b38 Mon Sep 17 00:00:00 2001 From: Andy Meneely Date: Tue, 18 Nov 2014 20:45:43 -0500 Subject: [PATCH] Making the hex scrub EVEN more flexible... --- spec/spec_helper.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 7a46480..6b43459 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -25,10 +25,10 @@ end def scrub_hex(str) str.gsub(/0x\w{1,8}/,'') - .gsub(/ptr=.{8}/,'') - .gsub(/FontDescription:.{8}/,'FontDescription') - .gsub(/Handle:.{8}/,'Handle') - # .gsub(/RGB:./,'RGB:') + .gsub(/ptr=\w{1,8}/,'') + .gsub(/FontDescription:\w{8}/,'FontDescription') + .gsub(/Handle:\w{1,8}/,'Handle') + .gsub(/RGB:\w{1,8}/,'RGB:') end # Build a mock cairo instance that allows basically any method