* Extract the name of the spread base block (e.g., "GitHubBlock" from "...GitHubBlock")
(blockContent: string)
| 1002 | * Extract the name of the spread base block (e.g., "GitHubBlock" from "...GitHubBlock") |
| 1003 | */ |
| 1004 | function extractSpreadBase(blockContent: string): string | null { |
| 1005 | const spreadMatch = blockContent.match(/^\s*\.\.\.(\w+Block)\s*,/m) |
| 1006 | return spreadMatch ? spreadMatch[1] : null |
| 1007 | } |
| 1008 | |
| 1009 | /** |
| 1010 | * Extract block config from a specific block's content |
no outgoing calls
no test coverage detected