(filePath: string, newBasename: string)
| 3239 | }; |
| 3240 | // Helper function to replace the base filename in a packed file path |
| 3241 | const replaceBaseFilename = (filePath: string, newBasename: string): string => { |
| 3242 | const parts = filePath.split("\\"); |
| 3243 | parts[parts.length - 1] = newBasename; |
| 3244 | return parts.join("\\"); |
| 3245 | }; |
| 3246 | // Helper function to escape special regex characters for literal string matching |
| 3247 | const escapeRegExp = (string: string): string => { |
| 3248 | return string.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"); |
no outgoing calls
no test coverage detected