Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
afroborg committed Jul 27, 2022
1 parent 428a309 commit 112f3b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/resolvers/user.resolver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ const userResolver: Resolvers = {
},
class: ({ firstName, class: className }) => {
// hide phøsets class
if (firstName.toLowerCase().match(/ph[øö]s$/)) {
if (/ph[øö]s$/.test(firstName.toLowerCase().split(' ')[0])) {
return 'XXXX';
}

Expand Down

1 comment on commit 112f3b1

@blennster
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wow fan vad smart! Snyggt jobbat

Please sign in to comment.