Skip to content

Commit 00bc1f0

Browse files
bryanridesharkBrocco
authored andcommitted
fix(@angular/cli): Fix replace('/') to work using Regex.
1 parent c938936 commit 00bc1f0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/@angular/cli/utilities/dynamic-path-parser.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ export interface DynamicPathOptions {
1212

1313
export function dynamicPathParser(options: DynamicPathOptions) {
1414
const projectRoot = options.project.root;
15-
const sourceDir = options.appConfig.root.replace('/', path.sep);
15+
const sourceDir = options.appConfig.root.replace(/\//g, path.sep);
1616

1717
const p = options.appConfig.appRoot === undefined
1818
? 'app'
19-
: options.appConfig.appRoot.replace('/', path.sep);
19+
: options.appConfig.appRoot.replace(/\//g, path.sep);
2020
const appRoot = path.join(sourceDir, p);
2121
const cwd = process.env.PWD;
2222

0 commit comments

Comments
 (0)