Skip to content

Commit 91bd576

Browse files
committed
Improved regex
1 parent 9bc607e commit 91bd576

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ async function transferLabels(attachmentLabel = true, useLowerCase = true) {
333333
inform('Transferring Labels');
334334
console.warn(CCWARN,'NOTE (2022): GitHub descriptions are limited to 100 characters, and do not accept 4-byte Unicode');
335335

336-
const invalidUnicode = /[\u{10000}-\u{10FFFF}]/gu;
336+
const invalidUnicode = /[\u{10000}-\u{10FFFF}]|(?![*#0-9]+)[\p{Emoji}\p{Emoji_Modifier}\p{Emoji_Component}\p{Emoji_Modifier_Base}\p{Emoji_Presentation}]/gu;
337337

338338
// Get a list of all labels associated with this project
339339
let labels: SimpleLabel[] = await gitlabApi.Labels.all(

0 commit comments

Comments
 (0)