(str, mode = false)
| 625 | } |
| 626 | |
| 627 | function escapeQuotes(str, mode = false) |
| 628 | { |
| 629 | if(mode === 'simples') |
| 630 | return String(str).replace(/'/g, '\\\''); |
| 631 | else if(mode === 'doubles') |
| 632 | return String(str).replace(/"/g, '\\\"'); |
| 633 | else |
| 634 | return String(str).replace(/'/g, '\\\'').replace(/"/g, '\\\"'); |
| 635 | } |
| 636 | |
| 637 | function readFileApp(file) |
| 638 | { |
no outgoing calls
no test coverage detected