Skip to content

Commit e0a36e8

Browse files
committed
Merge branch 'master' of github.com:handy-common-utils/misc-utils
2 parents e4a8093 + 7a3e298 commit e0a36e8

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -663,13 +663,13 @@ Escape a string literal for using it inside of RegExp.
663663

664664
| Name | Type | Description |
665665
| :------ | :------ | :------ |
666-
| `text` | `string` | the string literal to be escaped |
666+
| `text` | `undefined` \| ``null`` \| `string` | the string literal to be escaped |
667667

668668
###### Returns
669669

670670
`string`
671671

672-
escaped string that can be used inside of RegExp
672+
escaped string that can be used inside of RegExp, or an empty string if the input is null or undefined
673673

674674
___
675675

@@ -684,7 +684,7 @@ Escape replacement string for using it inside of RegExp replacement parameter.
684684

685685
| Name | Type | Description |
686686
| :------ | :------ | :------ |
687-
| `text` | `string` | the replacement string to be escaped |
687+
| `text` | `undefined` \| ``null`` \| `string` | the replacement string to be escaped, or an empty string if the input is null or undefined |
688688

689689
###### Returns
690690

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@handy-common-utils/misc-utils",
3-
"version": "1.6.0",
3+
"version": "1.6.1",
44
"description": "Miscellaneous utilities",
55
"scripts": {
66
"pretest": "eslint . --ext .ts",

0 commit comments

Comments
 (0)