@trackunit/shared-utils
Advanced tools
Comparing version 1.0.2 to 1.0.3
@@ -1100,5 +1100,3 @@ 'use strict'; | ||
// Regular expression to match various hidden characters | ||
const hiddenRegex = new RegExp( | ||
// eslint-disable-next-line no-control-regex | ||
/[\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB\u0000-\u001F\u007F-\u009F]/gu); | ||
const hiddenRegex = new RegExp(/[\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB\u0000-\u001F\u007F-\u009F]/gu); | ||
// Replace hidden characters with an empty string | ||
@@ -1105,0 +1103,0 @@ return input.replace(hiddenRegex, ""); |
@@ -1098,5 +1098,3 @@ import { v3, v4, v5 } from 'uuid'; | ||
// Regular expression to match various hidden characters | ||
const hiddenRegex = new RegExp( | ||
// eslint-disable-next-line no-control-regex | ||
/[\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB\u0000-\u001F\u007F-\u009F]/gu); | ||
const hiddenRegex = new RegExp(/[\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB\u0000-\u001F\u007F-\u009F]/gu); | ||
// Replace hidden characters with an empty string | ||
@@ -1103,0 +1101,0 @@ return input.replace(hiddenRegex, ""); |
{ | ||
"name": "@trackunit/shared-utils", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"repository": "https://github.com/Trackunit/manager", | ||
@@ -5,0 +5,0 @@ "engines": { |
@@ -40,2 +40,3 @@ /** | ||
export declare const stripHiddenCharacters: (input: string) => string; | ||
export type StringWithAutocompleteOptions<TOptions extends string> = TOptions | string; | ||
export type StringWithAutocompleteOptions<TOptions extends string> = TOptions | ({} & string); | ||
export type NonEmptyString<TString extends string> = "" extends TString ? never : TString; |
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
128955
3431
1