magic-regexp
Advanced tools
Comparing version 0.2.1 to 0.2.2
declare type Flag = 'd' | 'g' | 'i' | 'm' | 's' | 'u' | 'y'; | ||
/** Generate indices for substring matches */ | ||
declare const withIndices: Flag; | ||
declare const withIndices = "d"; | ||
/** Case-insensitive search */ | ||
declare const caseInsensitive: Flag; | ||
declare const caseInsensitive = "i"; | ||
/** Global search */ | ||
declare const global: Flag; | ||
declare const global = "g"; | ||
/** Multi-line search */ | ||
declare const multiline: Flag; | ||
declare const multiline = "m"; | ||
/** Allows `.` to match newline characters */ | ||
declare const dotAll: Flag; | ||
declare const dotAll = "s"; | ||
/** Treat a pattern as a sequence of unicode code points */ | ||
declare const unicode: Flag; | ||
declare const unicode = "u"; | ||
/** Perform a "sticky" search that matches starting at the current position in the target string */ | ||
declare const sticky: Flag; | ||
declare const sticky = "y"; | ||
declare type InputSource<S extends string = never, T extends string = never> = S | Input<S, T>; | ||
declare type MapToValues<T extends InputSource<any, any>[]> = T extends [infer First, ...infer Rest] ? First extends InputSource<infer K> ? [K, ...MapToValues<Rest>] : [] : []; | ||
declare type MapToValues<T extends InputSource<any, any>[]> = T extends [infer First, ...infer Rest] ? First extends InputSource<string> ? [GetValue<First>, ...MapToValues<Rest>] : [] : []; | ||
declare type MapToGroups<T extends InputSource<any, string>[]> = T extends [ | ||
@@ -20,0 +20,0 @@ infer First, |
{ | ||
"name": "magic-regexp", | ||
"version": "0.2.1", | ||
"version": "0.2.2", | ||
"description": "", | ||
@@ -63,3 +63,3 @@ "repository": "danielroe/magic-regexp", | ||
"unbuild": "latest", | ||
"vite": "^3.0.0", | ||
"vite": "^3.0.1", | ||
"vitest": "latest" | ||
@@ -66,0 +66,0 @@ }, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
33501