Skip to content

Commit 5166fd3

Browse files
authored
fix: replaceAll occurences of app prefix (#249)
1 parent df476be commit 5166fd3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

projects/ngverse/schematics/add/index.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,6 @@ function prefixIsDefault(prefix?: string) {
8181
* @param prefix
8282
*/
8383
function updatePrefix(content: string, prefix: string) {
84-
const defaultSelector = /\bapp\b/g; // Match 'app' as a whole word
85-
return content.replace(defaultSelector, prefix);
84+
const defaultSelector = 'app'; // Match 'app' as a whole word
85+
return content.replaceAll(defaultSelector, prefix);
8686
}

0 commit comments

Comments
 (0)