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