File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed 
Sources/TorusUtils/Extensions Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -24,15 +24,15 @@ extension String {
2424        return  hasPrefix ( " 04 " ) 
2525    } 
2626
27-     func  add04Prefix( )  ->  String  { 
28-         if  !hasPrefix ( " 04 " )   { 
27+     func  add04Prefix( targetLength :   Int   =   128 )  ->  String  { 
28+         if  self . count  ==  targetLength { 
2929            return  " 04 "  +  self 
3030        } 
3131        return  self 
3232    } 
3333
34-     func  strip04Prefix( )  ->  String  { 
35-         if  hasPrefix ( " 04 " )  { 
34+     func  strip04Prefix( targetLength :   Int   =   130 )  ->  String  { 
35+         if  hasPrefix ( " 04 " )  &&  self . count  ==  targetLength  { 
3636            let  indexStart  =  index ( startIndex,  offsetBy:  2 ) 
3737            return  String ( self [ indexStart... ] ) 
3838        } 
Original file line number Diff line number Diff line change 11Pod ::Spec . new  do  |spec |
22  spec . name          =  "Torus-utils" 
3-   spec . version       =  "8.1.0 " 
3+   spec . version       =  "8.1.2 " 
44  spec . ios . deployment_target   =  "13.0" 
55  spec . summary       =  "Retrieve user shares" 
66  spec . homepage      =  "https://github.com/torusresearch/torus-utils-swift" 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments