Skip to content

Commit

Permalink
Merge pull request #763 from openstad/hotfix/resource-form-trim-descr…
Browse files Browse the repository at this point in the history
…iption

Hotfix/resource form trim description
  • Loading branch information
iandebruin98 authored Feb 18, 2025
2 parents 6e5024d + 870dc18 commit a8dde15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/api-server/src/util/sanitize.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
var sanitize = require('sanitize-html');

const removeEmojis = (text) => {
return text.replace(/\p{Emoji}/gu, '');
return !!text ? text.replace(/\p{Emoji}/gu, '') : text;
};

// Decorator for the sanitize function
Expand Down

0 comments on commit a8dde15

Please sign in to comment.