Skip to content

Commit 13a3571

Browse files
committed
fix(migrations): use regular expression literals instead of string literals
1 parent 3e527e5 commit 13a3571

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

projects/igniteui-angular/migrations/common/UpdateChanges.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,7 @@ export class UpdateChanges {
472472
protected updateSassVariables(entryPath: string) {
473473
let fileContent = this.host.read(entryPath).toString();
474474
let overwrite = false;
475-
const allowedStartCharacters = new RegExp('(\:|\,)\s?', 'g');
475+
const allowedStartCharacters = new RegExp(/(:|,)\s?/, 'g');
476476
const allowedEndCharacters = new RegExp('[;),: \r\n]', 'g');
477477
for (const change of this.themeChanges.changes) {
478478
if (change.type !== ThemeType.Variable) {

0 commit comments

Comments
 (0)