Skip to content

Commit 52edfd9

Browse files
authored
Merge pull request #13577 from IgniteUI/nalipiev/migration-regex-alert-16.1
fix(migrations): use regular expression literals instead of string literals
2 parents b000c6b + 64089bf commit 52edfd9

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)