We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent df476be commit 5166fd3Copy full SHA for 5166fd3
projects/ngverse/schematics/add/index.ts
@@ -81,6 +81,6 @@ function prefixIsDefault(prefix?: string) {
81
* @param prefix
82
*/
83
function updatePrefix(content: string, prefix: string) {
84
- const defaultSelector = /\bapp\b/g; // Match 'app' as a whole word
85
- return content.replace(defaultSelector, prefix);
+ const defaultSelector = 'app'; // Match 'app' as a whole word
+ return content.replaceAll(defaultSelector, prefix);
86
}
0 commit comments