1. allison
  2. spix

Commits

allison  committed 3d3c7aa

Return an empty string if 'src' attribute doesn't have a value.

  • Participants
  • Parent commits 9afc805
  • Branches default

Comments (0)

Files changed (1)

File Spix/Match.pir

View file
  • Ignore whitespace
     if got_value goto setvalue
     $P0 = getattribute self, 'attrs'
     $P1 = $P0['src']
+    if null $P1 goto empty_string
     .return ($P1)
   setvalue:
     $P0 = getattribute self, 'attrs'
     $P0['src'] = value
     .return (value)
+  empty_string:
+    .return ('')
 .end
 
 .sub "__dump" :method