Skip to content

Commit 6ced614

Browse files
committed
Meta tweaks
1 parent 6fe67c0 commit 6ced614

File tree

4 files changed

+6
-20
lines changed

4 files changed

+6
-20
lines changed

.github/funding.yml

-4
This file was deleted.

.github/workflows/main.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ jobs:
1313
- 14
1414
- 12
1515
steps:
16-
- uses: actions/checkout@v2
17-
- uses: actions/setup-node@v2
16+
- uses: actions/checkout@v4
17+
- uses: actions/setup-node@v4
1818
with:
1919
node-version: ${{ matrix.node-version }}
2020
- run: npm install

package.json

+2
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
},
1313
"type": "module",
1414
"exports": "./index.js",
15+
"types": "./index.d.ts",
16+
"sideEffects": false,
1517
"engines": {
1618
"node": ">=12"
1719
},

readme.md

+2-14
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
55
## Install
66

7-
```
8-
$ npm install escape-string-regexp
7+
```sh
8+
npm install escape-string-regexp
99
```
1010

1111
## Usage
@@ -22,15 +22,3 @@ new RegExp(escapedString);
2222
You can also use this to escape a string that is inserted into the middle of a regex, for example, into a character class.
2323

2424
Only the minimal amount of escaping is done, and developers are expected to insert escaped strings at safe positions in a `RegExp`. This keeps the output simple and gives you the best results in most cases. For edge case placements of escaped strings (such as immediately following `\0` or `\c`), the escaped value can change the meaning of the preceding or following token. If fully context-aware escaping is needed, consider interpolating a string using the [`regex`](https://github.com/slevithan/regex#interpolating-escaped-strings) package.
25-
26-
---
27-
28-
<div align="center">
29-
<b>
30-
<a href="https://tidelift.com/subscription/pkg/npm-escape-string-regexp?utm_source=npm-escape-string-regexp&utm_medium=referral&utm_campaign=readme">Get professional support for this package with a Tidelift subscription</a>
31-
</b>
32-
<br>
33-
<sub>
34-
Tidelift helps make open source sustainable for maintainers while giving companies<br>assurances about security, maintenance, and licensing for their dependencies.
35-
</sub>
36-
</div>

0 commit comments

Comments
 (0)