Skip to content

Commit cb62d04

Browse files
authored
Merge pull request #13576 from IgniteUI/nalipiev/migrations-regex-alert-15.1
fix(migrations): use regular expression literals instead of string literals
2 parents b274a13 + 8ac6323 commit cb62d04

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)