(_str, symbol)
| 2 | import { addSideEffect, addDefault, addNamed } from '@babel/helper-module-imports'; |
| 3 | |
| 4 | function transCamel(_str, symbol) { |
| 5 | // e.g. QRCode |
| 6 | // First match: QR |
| 7 | // Second match: Code |
| 8 | const cells = _str.match(/([A-Z]+(?=[A-Z]|$))|([A-Z]?[^A-Z]+)/g) || []; |
| 9 | return cells.map(c => c.toLowerCase()).join(symbol); |
| 10 | } |
| 11 | |
| 12 | function winPath(path) { |
| 13 | return path.replace(/\\/g, '/'); |
no outgoing calls
no test coverage detected
searching dependent graphs…