Sha256: b437ea740c1f2a69754e7403a02441bbcb935591736993a78e6bfdb7db15cd89
Contents?: true
Size: 427 Bytes
Versions: 26
Compression:
Stored size: 427 Bytes
Contents
export const splitActionAttribute = (action: string) => { const match = action.match(/^(.+)->(.+)#(.+)@(\d+)$/); const componentName = match?.[2].replace("State", "Component"); if (!match) return { eventType: "", componentName: "", stateName: "", fnName: "", bounceTime: 0 }; return { eventType: match[1], componentName: componentName, stateName: match[2], fnName: match[3], bounceTime: parseInt(match[4] || "0") }; };
Version data entries
26 entries across 26 versions & 1 rubygems