Skip to content

Commit fc7e4b3

Browse files
committed
fix(tabs): Fix the migration(update regex with \r)
1 parent 87b2931 commit fc7e4b3

File tree

1 file changed

+1
-1
lines changed
  • projects/igniteui-angular/migrations/update-12_0_0

1 file changed

+1
-1
lines changed

projects/igniteui-angular/migrations/update-12_0_0/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ export default (): Rule => (host: Tree, context: SchematicContext) => {
5757
}
5858
};
5959

60-
const isEmptyOrSpaces = (str) => str === null || str === '' || str === '\n' || str === '\r\n' || str.match(/^[\n\t]* *$/) !== null;
60+
const isEmptyOrSpaces = (str) => str === null || str === '' || str === '\n' || str === '\r\n' || str.match(/^[\r\n\t]* *$/) !== null;
6161

6262
// Replace the tabsType input with tabsAligment
6363
for (const path of htmlFiles) {

0 commit comments

Comments
 (0)