Skip to content

Error with running #1

@lele0108

Description

@lele0108

I tried running the program, but this is what I get:

unknownf81edfea7052:typecatcher jimmyliu$ ruby run.rb hxj2gfu
run.rb:41: odd number list for Hash
family: font.match(/font-family:"(.+?)"/i)[1],
^
run.rb:41: syntax error, unexpected ':', expecting '}'
family: font.match(/font-family:"(.+?)"/i)[1],
^
run.rb:42: syntax error, unexpected ':', expecting '='
data: font.match(/src:url(data:.+?base64,(.+?))/i)[1],
^
run.rb:43: syntax error, unexpected ':', expecting '='
weight: font.match(/font-weight:(.+?);/i)[1],
^
run.rb:44: syntax error, unexpected ':', expecting '='
style: font.match(/font-style:(.+?);/i)[1]
^
run.rb:45: syntax error, unexpected '}', expecting kEND
run.rb:73: syntax error, unexpected $end, expecting kEND

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions