Browse Source

Swap substr for regex in getAddress

Bee Hudson 4 months ago
parent
commit
7c162a5483
1 changed files with 1 additions and 1 deletions
  1. 1 1
      yaict.pl

+ 1 - 1
yaict.pl

@@ -119,7 +119,7 @@ sub isImmediate
 
 sub getAddress
 {
-    return substr(shift, 2);
+    return (shift =~ s/^0d//r);
 }
 
 sub readFile