Skip to content

Commit 81eed53

Browse files
committed
fix(migrations): use regular expression literals instead of string literals
1 parent e06ecb8 commit 81eed53

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
@@ -478,7 +478,7 @@ export class UpdateChanges {
478478
protected updateSassVariables(entryPath: string) {
479479
let fileContent = this.host.read(entryPath).toString();
480480
let overwrite = false;
481-
const allowedStartCharacters = new RegExp('(\:|\,)\s?', 'g');
481+
const allowedStartCharacters = new RegExp(/(:|,)\s?/, 'g');
482482
// eslint-disable-next-line no-control-regex
483483
const allowedEndCharacters = new RegExp('[;),: \r\n]', 'g');
484484
for (const change of this.themeChanges.changes) {

0 commit comments

Comments
 (0)