next.js
3e449b23 - fix(create-next-app): validate --import-alias value (#63855)

Commit
2 years ago
fix(create-next-app): validate --import-alias value (#63855) Fixes #63854 Previously, there was no check when a path was passed with the --import-alias flag. Furthermore, the regex used before did not check for possible invalid paths. The current regex checks the following conditions: - It must follow the pattern `<prefix>/*` - The prefix cannot contain invalid characters for folders, such as: (whitespaces, /, <, >, :, ", /, \, |, ? and *) --------- Co-authored-by: JJ Kasper <jj@jjsweb.site>
Author
Parents
Loading