Module
x/valibot/mod.ts>DECIMAL_REGEX
The modular and type safe schema library for validating structural data 🤖
Extremely Popular
Latest
srcValiErrorAnySchemaArgsActionArgsActionAsyncArrayIssueArrayPathItemArraySchemaArraySchemaAsyncAwaitActionAsyncBase64ActionBase64IssueBaseIssueBaseMetadataBaseSchemaBaseSchemaAsyncBaseTransformationBaseTransformationAsyncBaseValidationBaseValidationAsyncBicActionBicIssueBigintIssueBigintSchemaBlobIssueBlobSchemaBooleanIssueBooleanSchemaBrandBrandActionBytesActionBytesIssueCheckActionCheckActionAsyncCheckIssueCheckItemsActionCheckItemsActionAsyncCheckItemsIssueConfigCreditCardActionCreditCardIssueCuid2ActionCuid2IssueCustomIssueCustomSchemaCustomSchemaAsyncDateIssueDateSchemaDecimalActionDecimalIssueDescriptionActionDigitsActionDigitsIssueEmailActionEmailIssueEmojiActionEmojiIssueEmptyActionEmptyIssueEndsWithActionEndsWithIssueEnumEnumIssueEnumSchemaEveryItemActionEveryItemIssueExcludesActionExcludesIssueFailureDatasetFileIssueFileSchemaFilterItemsActionFindItemActionFiniteActionFiniteIssueFunctionIssueFunctionSchemaGenericIssueGenericMetadataGenericSchemaGenericSchemaAsyncGenericTransformationGenericTransformationAsyncGenericValidationGenericValidationAsyncGraphemesActionGraphemesIssueHashActionHashIssueHexadecimalActionHexadecimalIssueHexColorActionHexColorIssueImeiActionImeiIssueIncludesActionIncludesIssueInstanceIssueInstanceSchemaIntegerActionIntegerIssueIntersectIssueIntersectSchemaIntersectSchemaAsyncIpActionIpIssueIpv4ActionIpv4IssueIpv6ActionIpv6IssueIsoDateActionIsoDateIssueIsoDateTimeActionIsoDateTimeIssueIsoTimeActionIsoTimeIssueIsoTimeSecondActionIsoTimeSecondIssueIsoTimestampActionIsoTimestampIssueIsoWeekActionIsoWeekIssueLazySchemaLazySchemaAsyncLengthActionLengthIssueLiteralIssueLiteralSchemaLooseObjectIssueLooseObjectSchemaLooseObjectSchemaAsyncLooseTupleIssueLooseTupleSchemaLooseTupleSchemaAsyncMac48ActionMac48IssueMac64ActionMac64IssueMacActionMacIssueMapIssueMapItemsActionMapPathItemMapSchemaMapSchemaAsyncMaxBytesActionMaxBytesIssueMaxGraphemesActionMaxGraphemesIssueMaxLengthActionMaxLengthIssueMaxSizeActionMaxSizeIssueMaxValueActionMaxValueIssueMaxWordsActionMaxWordsIssueMetadataActionMimeTypeActionMimeTypeIssueMinBytesActionMinBytesIssueMinGraphemesActionMinGraphemesIssueMinLengthActionMinLengthIssueMinSizeActionMinSizeIssueMinValueActionMinValueIssueMinWordsActionMinWordsIssueMultipleOfActionMultipleOfIssueNanIssueNanoIDActionNanoIDIssueNanSchemaNeverIssueNeverSchemaNonEmptyActionNonEmptyIssueNonNullableIssueNonNullableSchemaNonNullableSchemaAsyncNonNullishIssueNonNullishSchemaNonNullishSchemaAsyncNonOptionalIssueNonOptionalSchemaNonOptionalSchemaAsyncNormalizeActionNotBytesActionNotBytesIssueNotGraphemesActionNotGraphemesIssueNotLengthActionNotLengthIssueNotSizeActionNotSizeIssueNotValueActionNotValueIssueNotWordsActionNotWordsIssueNullableSchemaNullableSchemaAsyncNullishSchemaNullishSchemaAsyncNullIssueNullSchemaNumberIssueNumberSchemaObjectEntriesObjectEntriesAsyncObjectIssueObjectPathItemObjectSchemaObjectSchemaAsyncObjectWithRestIssueObjectWithRestSchemaObjectWithRestSchemaAsyncOctalActionOctalIssueOptionalSchemaOptionalSchemaAsyncParserParserAsyncPartialCheckActionPartialCheckActionAsyncPartialCheckIssuePartialDatasetPicklistIssuePicklistSchemaPromiseIssuePromiseSchemaRawCheckActionRawCheckActionAsyncRawCheckIssueRawTransformActionRawTransformActionAsyncRawTransformIssueReadonlyActionRecordIssueRecordSchemaRecordSchemaAsyncReduceItemsActionRegexActionRegexIssueReturnsActionReturnsActionAsyncSafeIntegerActionSafeIntegerIssueSafeParserSafeParserAsyncSetIssueSetPathItemSetSchemaSetSchemaAsyncSizeActionSizeIssueSomeItemActionSomeItemIssueSortItemsActionStartsWithActionStartsWithIssueStrictObjectIssueStrictObjectSchemaStrictObjectSchemaAsyncStrictTupleIssueStrictTupleSchemaStrictTupleSchemaAsyncStringIssueStringSchemaSuccessDatasetSymbolIssueSymbolSchemaTitleActionToLowerCaseActionToMaxValueActionToMinValueActionToUpperCaseActionTransformActionTransformActionAsyncTrimActionTrimEndActionTrimStartActionTupleIssueTupleSchemaTupleSchemaAsyncTupleWithRestIssueTupleWithRestSchemaTupleWithRestSchemaAsyncUlidActionUlidIssueUndefinedableSchemaUndefinedableSchemaAsyncUndefinedIssueUndefinedSchemaUnionIssueUnionSchemaUnionSchemaAsyncUnknownDatasetUnknownPathItemUnknownSchemaUrlActionUrlIssueUuidActionUuidIssueValueActionValueIssueVariantIssueVariantOptionSchemaVariantOptionSchemaAsyncVariantSchemaVariantSchemaAsyncVoidIssueVoidSchemaWordsActionWordsIssueArrayInputArrayRequirementArrayRequirementAsyncBrandNameClassContentInputContentRequirementDeepPickNDefaultDefaultAsyncDefaultValueErrorMessageFallbackFallbackAsyncFirstTupleItemFlatErrorsGlobalConfigHashTypeInferDefaultInferDefaultsInferFallbackInferFallbacksInferInputInferIntersectInputInferIntersectOutputInferIssueInferMapInputInferMapOutputInferNonNullableInputInferNonNullableIssueInferNonNullableOutputInferNonNullishInputInferNonNullishIssueInferNonNullishOutputInferNonOptionalInputInferNonOptionalIssueInferNonOptionalOutputInferNullableOutputInferNullishOutputInferObjectInputInferObjectIssueInferObjectOutputInferOptionalOutputInferOutputInferRecordInputInferRecordOutputInferSetInputInferSetOutputInferTupleInputInferTupleIssueInferTupleOutputInferUndefinedableOutputInferVariantIssueIntersectOptionsIntersectOptionsAsyncIssueDotPathIssuePathItemLastTupleItemLengthInputLiteralMarkOptionalMaybePromiseMaybeReadonlyNonNullableNonNullishNonOptionalNormalizeFormObjectKeysOutputDatasetPathKeysPicklistOptionsPipeActionPipeActionAsyncPipeItemPipeItemAsyncPrettifySafeParseResultSchemaWithFallbackSchemaWithFallbackAsyncSchemaWithOmitSchemaWithoutPipeSchemaWithPartialSchemaWithPartialAsyncSchemaWithPickSchemaWithPipeSchemaWithPipeAsyncSchemaWithRequiredSchemaWithRequiredAsyncSizeInputTupleItemsTupleItemsAsyncUnionOptionsUnionOptionsAsyncUnionToIntersectUnionToTupleValueInputVariantOptionsVariantOptionsAsyncBASE64_REGEXBIC_REGEXBrandSymbolCUID2_REGEXDECIMAL_REGEXDIGITS_REGEXEMAIL_REGEXEMOJI_REGEXHEX_COLOR_REGEXHEXADECIMAL_REGEXIMEI_REGEXIP_REGEXIPV4_REGEXIPV6_REGEXISO_DATE_REGEXISO_DATE_TIME_REGEXISO_TIME_REGEXISO_TIME_SECOND_REGEXISO_TIMESTAMP_REGEXISO_WEEK_REGEXMAC_REGEXMAC48_REGEXMAC64_REGEXNANO_ID_REGEXOCTAL_REGEXULID_REGEXUUID_REGEX_addIssue_getByteCount_getGraphemeCount_getWordCount_isLuhnAlgo_isValidObjectKey_joinExpects_stringifyanyargsargsAsyncarrayarrayAsyncassertawaitAsyncbase64bicbigintblobbooleanbrandbytescheckcheckAsynccheckItemscheckItemsAsyncconfigcreditCardcuid2customcustomAsyncdatedecimaldeleteGlobalConfigdeleteGlobalMessagedeleteSchemaMessagedeleteSpecificMessagedescriptiondigitsemailemojiemptyendsWithentriesFromListenumenum_everyItemexcludesfallbackfallbackAsyncfilefilterItemsfindItemfiniteflattenforwardforwardAsyncfunctionfunction_getDefaultgetDefaultsgetDefaultsAsyncgetDotPathgetFallbackgetFallbacksgetFallbacksAsyncgetGlobalConfiggetGlobalMessagegetSchemaMessagegetSpecificMessagegraphemeshashhexadecimalhexColorimeiincludesinstanceintegerintersectintersectAsyncipipv4ipv6isisoDateisoDateTimeisOfKindisOfTypeisoTimeisoTimeSecondisoTimestampisoWeekisValiErrorkeyoflazylazyAsynclengthliterallooseObjectlooseObjectAsynclooseTuplelooseTupleAsyncmacmac48mac64mapmapAsyncmapItemsmaxBytesmaxGraphemesmaxLengthmaxSizemaxValuemaxWordsmetadatamimeTypeminBytesminGraphemesminLengthminSizeminValueminWordsmultipleOfnannanoidnevernonEmptynonNullablenonNullableAsyncnonNullishnonNullishAsyncnonOptionalnonOptionalAsyncnormalizenotBytesnotGraphemesnotLengthnotSizenotValuenotWordsnullnull_nullablenullableAsyncnullishnullishAsyncnumberobjectobjectAsyncobjectWithRestobjectWithRestAsyncoctalomitoptionaloptionalAsyncparseparseAsyncparserparserAsyncpartialpartialAsyncpartialCheckpartialCheckAsyncpickpicklistpipepipeAsyncpromiserawCheckrawCheckAsyncrawTransformrawTransformAsyncreadonlyrecordrecordAsyncreduceItemsregexrequiredrequiredAsyncreturnsreturnsAsyncsafeIntegersafeParsesafeParseAsyncsafeParsersafeParserAsyncsetsetAsyncsetGlobalConfigsetGlobalMessagesetSchemaMessagesetSpecificMessagesizesomeItemsortItemsstartsWithstrictObjectstrictObjectAsyncstrictTuplestrictTupleAsyncstringsymboltitletoLowerCasetoMaxValuetoMinValuetoUpperCasetransformtransformAsynctrimtrimEndtrimStarttupletupleAsynctupleWithResttupleWithRestAsynculidundefinedundefined_undefinedableundefinedableAsyncunionunionAsyncunknownunwrapurluuidvaluevariantvariantAsyncvoidvoid_words
mod.ts (default module)
c
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
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