regex-partial-match 0.1.3 → 0.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -39,7 +39,7 @@ partial.test("goodbye"); // false - cannot match
39
39
  ```javascript
40
40
  import "regex-partial-match/extend";
41
41
 
42
- const partial = /hello world/.createPartialMatchRegexRegex();
42
+ const partial = /hello world/.toPartialMatchRegex();
43
43
 
44
44
  partial.test("hel"); // true
45
45
  ```
package/lib/extend.js CHANGED
@@ -1,4 +1,4 @@
1
- import toPartialMatch from "./index.js";
1
+ import createPartialMatchRegex from "./index.js";
2
2
  RegExp.prototype.toPartialMatchRegex = function () {
3
- return toPartialMatch(this);
3
+ return createPartialMatchRegex(this);
4
4
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "regex-partial-match",
3
- "version": "0.1.3",
3
+ "version": "0.1.6",
4
4
  "description": "A regular expression transform for partial matching",
5
5
  "engines": {
6
6
  "node": ">=23"