Making the hex scrub EVEN more flexible...
parent
dd8197b91d
commit
163c34c2ea
|
|
@ -25,10 +25,10 @@ end
|
||||||
|
|
||||||
def scrub_hex(str)
|
def scrub_hex(str)
|
||||||
str.gsub(/0x\w{1,8}/,'')
|
str.gsub(/0x\w{1,8}/,'')
|
||||||
.gsub(/ptr=.{8}/,'')
|
.gsub(/ptr=\w{1,8}/,'')
|
||||||
.gsub(/FontDescription:.{8}/,'FontDescription')
|
.gsub(/FontDescription:\w{8}/,'FontDescription')
|
||||||
.gsub(/Handle:.{8}/,'Handle')
|
.gsub(/Handle:\w{1,8}/,'Handle')
|
||||||
# .gsub(/RGB:./,'RGB:')
|
.gsub(/RGB:\w{1,8}/,'RGB:')
|
||||||
end
|
end
|
||||||
|
|
||||||
# Build a mock cairo instance that allows basically any method
|
# Build a mock cairo instance that allows basically any method
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue