mirror of
https://github.com/renovatebot/renovate.git
synced 2025-01-14 16:46:25 +00:00
12 lines
312 B
TypeScript
12 lines
312 B
TypeScript
import emoji from 'node-emoji';
|
|
import { RenovateConfig } from '../config';
|
|
|
|
let unicodeEmoji = false;
|
|
|
|
export function setEmojiConfig(_config: RenovateConfig): void {
|
|
unicodeEmoji = _config.unicodeEmoji;
|
|
}
|
|
|
|
export function emojify(text: string): string {
|
|
return unicodeEmoji ? emoji.emojify(text) : text;
|
|
}
|