Skip to content

Commit 1e761d9

Browse files
committed
changing function name from formatEmojiMEssage to removeEmojis
1 parent e68724d commit 1e761d9

File tree

9 files changed

+106
-144
lines changed

9 files changed

+106
-144
lines changed

docs/api.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18081,7 +18081,7 @@ Environment utilities for ZAP
1808118081
* [~isMatchingVersion(versionsArray, providedVersion)](#module_JS API_ Environment utilities..isMatchingVersion) ⇒
1808218082
* [~versionsCheck()](#module_JS API_ Environment utilities..versionsCheck) ⇒
1808318083
* [~httpStaticContent()](#module_JS API_ Environment utilities..httpStaticContent) ⇒
18084-
* [~formatEmojiMessage(emoji, message)](#module_JS API_ Environment utilities..formatEmojiMessage) ⇒ <code>string</code>
18084+
* [~removeEmojis(message)](#module_JS API_ Environment utilities..removeEmojis) ⇒ <code>string</code>
1808518085
* [~setNoEmoji(disabled)](#module_JS API_ Environment utilities..setNoEmoji)
1808618086
* [~resetEmojiState()](#module_JS API_ Environment utilities..resetEmojiState)
1808718087

@@ -18430,17 +18430,17 @@ Returns path to HTTP static content while taking into account DEV / PROD modes.
1843018430

1843118431
**Kind**: inner method of [<code>JS API: Environment utilities</code>](#module_JS API_ Environment utilities)
1843218432
**Returns**: full path to HTTP static content
18433-
<a name="module_JS API_ Environment utilities..formatEmojiMessage"></a>
18433+
<a name="module_JS API_ Environment utilities..removeEmojis"></a>
1843418434

18435-
### JS API: Environment utilities~formatEmojiMessage(emoji, message) ⇒ <code>string</code>
18436-
Format a message with emoji if enabled, without if disabled.
18435+
### JS API: Environment utilities~removeEmojis(message) ⇒ <code>string</code>
18436+
Remove all emoji characters from a string.
18437+
Uses Unicode property escapes (Node.js v16+).
1843718438

1843818439
**Kind**: inner method of [<code>JS API: Environment utilities</code>](#module_JS API_ Environment utilities)
18439-
**Returns**: <code>string</code> - formatted message
18440+
**Returns**: <code>string</code> - message with emojis removed
1844018441

1844118442
| Param | Type | Description |
1844218443
| --- | --- | --- |
18443-
| emoji | <code>string</code> | the emoji character |
1844418444
| message | <code>string</code> | the text message |
1844518445

1844618446
<a name="module_JS API_ Environment utilities..setNoEmoji"></a>

0 commit comments

Comments
 (0)