Skip to content

Commit

Permalink
fix(EnumKeyFormat): updated regex format for aot 🐛
Browse files Browse the repository at this point in the history
  • Loading branch information
flauc committed Aug 6, 2018
1 parent 6c2a00f commit 487e75a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export class EnumKeyFormatPipe implements PipeTransform {

static defaultFormat(value: string) {
return value
.split(/(?=[A-Z])/)
.split(new RegExp('(?=[A-Z])'))
.join(' ');
}

Expand Down

0 comments on commit 487e75a

Please sign in to comment.