(localident)
| 265 | const reControlChars = /[\u0000-\u001f\u0080-\u009f]/g; |
| 266 | |
| 267 | function escapeLocalIdent(localident) { |
| 268 | // TODO simplify? |
| 269 | return escape( |
| 270 | localident |
| 271 | // For `[hash]` placeholder |
| 272 | .replace(/^((-?[0-9])|--)/, "_$1") |
| 273 | .replace(filenameReservedRegex, "-") |
| 274 | .replace(reControlChars, "-") |
| 275 | .replace(/\./g, "-"), |
| 276 | ); |
| 277 | } |
| 278 | |
| 279 | function defaultGetLocalIdent( |
| 280 | loaderContext, |
no test coverage detected
searching dependent graphs…