(str)
| 26 | * @returns {string} wrapped string |
| 27 | */ |
| 28 | const wrapComment = (str) => { |
| 29 | if (!str.includes("\n")) { |
| 30 | return Template.toComment(str); |
| 31 | } |
| 32 | return `/*!\n * ${str |
| 33 | .replace(/\*\//g, "* /") |
| 34 | .split("\n") |
| 35 | .join("\n * ") |
| 36 | .replace(/\s+\n/g, "\n") |
| 37 | .trimEnd()}\n */`; |
| 38 | }; |
| 39 | |
| 40 | const PLUGIN_NAME = "BannerPlugin"; |
| 41 |
no test coverage detected