@augment-vir/common 31.32.0 → 31.32.2

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.
@@ -1,5 +1,5 @@
1
+ import { escapeStringForRegExp } from '@augment-vir/core';
1
2
  import { removeDuplicateCharacters } from '../string/remove-duplicate-characters.js';
2
- import { escapeStringForRegExp } from './regexp-string.js';
3
3
  /**
4
4
  * Creates a new RegExp by adding the given `flags` to the original RegExp.
5
5
  *
package/dist/index.d.ts CHANGED
@@ -72,7 +72,6 @@ export * from './augments/random/random-string.js';
72
72
  export * from './augments/random/seeded-random.js';
73
73
  export * from './augments/regexp/match.js';
74
74
  export * from './augments/regexp/regexp-flags.js';
75
- export * from './augments/regexp/regexp-string.js';
76
75
  export * from './augments/selection-set/select-collapsed.js';
77
76
  export * from './augments/selection-set/select-from.js';
78
77
  export * from './augments/selection-set/selection-set.js';
@@ -82,7 +81,6 @@ export * from './augments/string/casing/kebab-and-camel.js';
82
81
  export * from './augments/string/comma.js';
83
82
  export * from './augments/string/indent.js';
84
83
  export * from './augments/string/join.js';
85
- export * from './augments/string/match.js';
86
84
  export * from './augments/string/prefix.js';
87
85
  export * from './augments/string/remove-duplicate-characters.js';
88
86
  export * from './augments/string/replace.js';
package/dist/index.js CHANGED
@@ -72,7 +72,6 @@ export * from './augments/random/random-string.js';
72
72
  export * from './augments/random/seeded-random.js';
73
73
  export * from './augments/regexp/match.js';
74
74
  export * from './augments/regexp/regexp-flags.js';
75
- export * from './augments/regexp/regexp-string.js';
76
75
  export * from './augments/selection-set/select-collapsed.js';
77
76
  export * from './augments/selection-set/select-from.js';
78
77
  export * from './augments/selection-set/selection-set.js';
@@ -82,7 +81,6 @@ export * from './augments/string/casing/kebab-and-camel.js';
82
81
  export * from './augments/string/comma.js';
83
82
  export * from './augments/string/indent.js';
84
83
  export * from './augments/string/join.js';
85
- export * from './augments/string/match.js';
86
84
  export * from './augments/string/prefix.js';
87
85
  export * from './augments/string/remove-duplicate-characters.js';
88
86
  export * from './augments/string/replace.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@augment-vir/common",
3
- "version": "31.32.0",
3
+ "version": "31.32.2",
4
4
  "description": "A collection of augments, helpers types, functions, and classes for any JavaScript environment.",
5
5
  "keywords": [
6
6
  "augment",
@@ -40,8 +40,8 @@
40
40
  "test:web": "virmator --no-deps test web"
41
41
  },
42
42
  "dependencies": {
43
- "@augment-vir/assert": "^31.32.0",
44
- "@augment-vir/core": "^31.32.0",
43
+ "@augment-vir/assert": "^31.32.2",
44
+ "@augment-vir/core": "^31.32.2",
45
45
  "@date-vir/duration": "^7.4.0",
46
46
  "ansi-styles": "^6.2.1",
47
47
  "deepcopy-esm": "^2.1.1",
@@ -1,9 +0,0 @@
1
- /**
2
- * Escapes characters from the given string so that it can be used within a RegExp without being
3
- * parsed as RegExp syntax.
4
- *
5
- * @category RegExp
6
- * @category Package : @augment-vir/common
7
- * @package [`@augment-vir/common`](https://www.npmjs.com/package/@augment-vir/common)
8
- */
9
- export declare function escapeStringForRegExp(input: string): string;
@@ -1,11 +0,0 @@
1
- /**
2
- * Escapes characters from the given string so that it can be used within a RegExp without being
3
- * parsed as RegExp syntax.
4
- *
5
- * @category RegExp
6
- * @category Package : @augment-vir/common
7
- * @package [`@augment-vir/common`](https://www.npmjs.com/package/@augment-vir/common)
8
- */
9
- export function escapeStringForRegExp(input) {
10
- return input.replaceAll(/[\^$\\.*+?()[\]{}|]/g, String.raw `\$&`);
11
- }
@@ -1,8 +0,0 @@
1
- /**
2
- * A case insensitive match between strings.
3
- *
4
- * @category String
5
- * @category Package : @augment-vir/common
6
- * @package [`@augment-vir/common`](https://www.npmjs.com/package/@augment-vir/common)
7
- */
8
- export declare function match(haystack: string, needle: string): boolean;
@@ -1,11 +0,0 @@
1
- import { escapeStringForRegExp } from '../regexp/regexp-string.js';
2
- /**
3
- * A case insensitive match between strings.
4
- *
5
- * @category String
6
- * @category Package : @augment-vir/common
7
- * @package [`@augment-vir/common`](https://www.npmjs.com/package/@augment-vir/common)
8
- */
9
- export function match(haystack, needle) {
10
- return !!needle && !!new RegExp(escapeStringForRegExp(needle), 'i').exec(haystack);
11
- }