@tannin/sprintf 1.3.2 → 1.3.3
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/package.json +1 -1
- package/types/index.d.ts +1 -1
package/package.json
CHANGED
package/types/index.d.ts
CHANGED
|
@@ -156,7 +156,7 @@ type ExtractPositionalPlaceholders<T extends string> =
|
|
|
156
156
|
// Extracts unnamed placeholders like %s, %.2f, %.*d (ignores positional/named)
|
|
157
157
|
type ExtractUnnamedPlaceholders<T extends string> =
|
|
158
158
|
StripEscapedPercents<T> extends `${infer _}%${infer AfterPercent}`
|
|
159
|
-
? AfterPercent extends `${infer _Num}$${infer AfterPositional}`
|
|
159
|
+
? AfterPercent extends `${infer _Num extends `${number}`}$${infer AfterPositional}`
|
|
160
160
|
? ExtractUnnamedPlaceholders<AfterPositional> // Skip positional
|
|
161
161
|
: ParsePrecisionAndSpec<AfterPercent> extends [
|
|
162
162
|
infer Precision extends string,
|