(source: string)
| 1212 | const METAL_ATTRIBUTE_RE = |
| 1213 | /\[\[\s*[A-Za-z_]\w*(?:\s*\([^()\n]*\))?(?:\s*,\s*[A-Za-z_]\w*(?:\s*\([^()\n]*\))?)*\s*\]\]/g; |
| 1214 | export function blankMetalAttributes(source: string): string { |
| 1215 | if (source.indexOf('[[') === -1) return source; |
| 1216 | return source.replace(METAL_ATTRIBUTE_RE, (m) => ' '.repeat(m.length)); |
| 1217 | } |
| 1218 | |
| 1219 | /** |
| 1220 | * Hide C++ raw literals from the offset-preserving preParse scans (#1505). |
no outgoing calls
no test coverage detected