import { escapeStringForRegex } from "https://deno.land/x/earthstar@v10.0.0-beta.5/mod.browser.ts";
Module
x/earthstar/mod.browser.ts>escapeStringForRegex
Earthstar is a tool for private, undiscoverable, offline-first networks.
debugscriptssrcAttachmentDriverFilesystemAttachmentDriverMemoryClientSettingsConnectionRefusedErrorDocDriverLocalStorageDocDriverMemoryDocDriverSqliteEarthstarErrorLoggerMultiformatReplicaNetworkErrorNotImplementedErrorNotSupportedErrorPartnerLocalPartnerWebClientPartnerWebServerPeerReplicaReplicaCacheReplicaCacheIsClosedErrorReplicaDriverFsReplicaDriverMemoryReplicaIsClosedErrorSyncerTimeoutErrorValidationErrorAttachmentIngestEventAttachmentPruneEventAuthorKeypairCheckIntOptsCheckObjOptsCheckStringOptsCleanUpQueryResultDocAlreadyExistsDocBaseDocEs4DocEs5DocInputBaseDocInputEs4DocInputEs5ExpireEventFormatterGenerateOptsICryptoICryptoDriverIFormatIngestEventFailureIngestEventNothingHappenedIngestEventSuccessIPeerIReplicaAttachmentDriverIReplicaConfigIReplicaDocDriverIReplicaDriverISyncPartnerKeypairBytesMultiFormatReplicaOptsQueryQueryFilterReplicaEventDidCloseReplicaEventWillCloseSyncerOptsAsyncCallbackAttachmentTransferOptsAttachmentTransferProgressEventAttachmentTransferReportAttachmentTransferStatusAuthorAddressAuthorShortnameBase32StringCallbackCheckerCheckerSchemaClassThatImplementsConfigEs5DefaultDocDefaultFormatDefaultFormatsDocAttachmentDocInputWithFormatDocThumbnailDocWithAttachmentDocWithFormatFormatArgFormatConfigTypeFormatDocTypeFormatInputTypeFormatNameFormatNameTypeFormatsArgFormatsConfigRecordGetTransferOptsHistoryModeIngestEventLocalIndexParsedAddressPathPeerIdProcessedAllExistingEventQuerySourceEventQuerySourceModeQuerySourceOptsRangeMessageReplicaEventReplicaIdShareAddressShareKeypairShareNameSignatureSortOrderSyncAgentAbortEventSyncAgentDocEventSyncAgentEventSyncAgentFulfilledEventSyncAgentHaveEventSyncAgentOptsSyncAgentPruneEventSyncAgentRangeMessageEventSyncAgentStatusSyncAgentWantAttachmentEventSyncAgentWantEventSyncAppetiteSynceAgentNewAttachmentEventSyncerDiscloseEventSyncerEventSyncerFulfilledEventSyncerHeartbeatSyncerStatusSyncerSyncAgentEventSyncOrAsyncCallbackThunkTimestampWillMatch_matchAllalphaLoweralphaUpperauthorAddressCharsauthorKeyCharsauthorNameCharsb32charsCryptoCryptoDriverNobleCryptoDriverSodiumDEFAULT_FORMATDEFAULT_FORMATSDEFAULT_LOG_LEVELDEFAULT_QUERYdigitsextractTemplateVariablesFromPathextractTemplateVariablesFromPathUsingRegexFormatEs4FormatEs5GlobalCryptoDriverglobToQueryAndRegexglobToRegexinsertVariablesIntoTemplatepathCharspathPunctuationworkspaceAddressCharsworkspaceKeyCharsworkspaceNameCharsassembleAuthorAddressassembleShareAddressb64StringToBytesbase32BytesToStringbase32StringToBytesbytesToStringcheckAuthorIsValidcheckIntcheckIsPlainObjectcheckLiteralcheckObjcheckShareIsValidcheckStringcleanUpQuerycompareArrayscompareBasiccompareByFncompareByObjArrayFncompareByObjKeyconcatBytescountCharsdecodeKeypairToBytesdocIsExpireddocMatchesFilterencodeAuthorKeypairToStringsencodeShareKeypairToStringsescapeStringForRegexgenerateShareAddressgetFormatIntersectiongetFormatLookupgetFormatsWithFallbackgetFormatWithFallbackgetLogLevelgetLogLevelsidentifyBufOrBytesisAuthorKeypairisBufferisBytesisDigitisErrisObjectEmptyisOnlyPrintableAsciiisPlainObjectmicrosecondNownotErronlyHasCharsparseAddressparseAuthorAddressparseAuthorOrShareAddressparseShareAddressparseTemplatequeryByGlobqueryByTemplaterandomIdreplaceAllsetDefaultLogLevelsetGlobalCryptoDriversetLogLevelsleepsortedInPlacestringLengthInBytesstringToBytessyncReplicaAndFsDirupdateLogLevelsCmpLogLeveledrfc4648sha256_uint8arrayAsyncQueueFingerprintTreeRangeMessengerXXH64DeferredLiftingMonoidRangeMessengerConfigcloneDeepbytesEqualsdeferredshallowEqualArraysshallowEqualObjectsxxhash64AttachmentDriverIndexedDBAttachmentDriverMemoryClientSettingsConnectionRefusedErrorDocDriverIndexedDBDocDriverLocalStorageDocDriverMemoryEarthstarErrorLoggerMultiformatReplicaNetworkErrorNotImplementedErrorNotSupportedErrorPartnerLocalPartnerWebClientPeerReplicaReplicaCacheReplicaCacheIsClosedErrorReplicaDriverMemoryReplicaDriverWebReplicaIsClosedErrorSyncerTimeoutErrorValidationErrorAttachmentIngestEventAttachmentPruneEventAuthorKeypairCheckIntOptsCheckObjOptsCheckStringOptsCleanUpQueryResultDocAlreadyExistsDocBaseDocEs4DocEs5DocInputBaseDocInputEs4DocInputEs5ExpireEventFormatterGenerateOptsICryptoICryptoDriverIFormatIngestEventFailureIngestEventNothingHappenedIngestEventSuccessIPeerIReplicaAttachmentDriverIReplicaConfigIReplicaDocDriverIReplicaDriverISyncPartnerKeypairBytesMultiFormatReplicaOptsQueryQueryFilterReplicaEventDidCloseReplicaEventWillCloseSyncerOptsAsyncCallbackAttachmentTransferOptsAttachmentTransferProgressEventAttachmentTransferReportAttachmentTransferStatusAuthorAddressAuthorShortnameBase32StringCallbackCheckerCheckerSchemaClassThatImplementsConfigEs5DefaultDocDefaultFormatDefaultFormatsDocAttachmentDocInputWithFormatDocThumbnailDocWithAttachmentDocWithFormatFormatArgFormatConfigTypeFormatDocTypeFormatInputTypeFormatNameFormatNameTypeFormatsArgFormatsConfigRecordGetTransferOptsHistoryModeIngestEventLocalIndexParsedAddressPathPeerIdProcessedAllExistingEventQuerySourceEventQuerySourceModeQuerySourceOptsRangeMessageReplicaEventReplicaIdShareAddressShareKeypairShareNameSignatureSortOrderSyncAgentAbortEventSyncAgentDocEventSyncAgentEventSyncAgentFulfilledEventSyncAgentHaveEventSyncAgentOptsSyncAgentPruneEventSyncAgentRangeMessageEventSyncAgentStatusSyncAgentWantAttachmentEventSyncAgentWantEventSyncAppetiteSynceAgentNewAttachmentEventSyncerDiscloseEventSyncerEventSyncerFulfilledEventSyncerHeartbeatSyncerStatusSyncerSyncAgentEventSyncOrAsyncCallbackThunkTimestampWillMatch_matchAllalphaLoweralphaUpperauthorAddressCharsauthorKeyCharsauthorNameCharsb32charsCryptoCryptoDriverNobleDEFAULT_FORMATDEFAULT_FORMATSDEFAULT_LOG_LEVELDEFAULT_QUERYdigitsextractTemplateVariablesFromPathextractTemplateVariablesFromPathUsingRegexFormatEs4FormatEs5GlobalCryptoDriverglobToQueryAndRegexglobToRegexinsertVariablesIntoTemplatepathCharspathPunctuationworkspaceAddressCharsworkspaceKeyCharsworkspaceNameCharsassembleAuthorAddressassembleShareAddressb64StringToBytesbase32BytesToStringbase32StringToBytesbytesToStringcheckAuthorIsValidcheckIntcheckIsPlainObjectcheckLiteralcheckObjcheckShareIsValidcheckStringcleanUpQuerycompareArrayscompareBasiccompareByFncompareByObjArrayFncompareByObjKeyconcatBytescountCharsdecodeKeypairToBytesdocIsExpireddocMatchesFilterencodeAuthorKeypairToStringsencodeShareKeypairToStringsescapeStringForRegexgenerateShareAddressgetFormatIntersectiongetFormatLookupgetFormatsWithFallbackgetFormatWithFallbackgetLogLevelgetLogLevelsidentifyBufOrBytesisAuthorKeypairisBufferisBytesisDigitisErrisObjectEmptyisOnlyPrintableAsciiisPlainObjectmicrosecondNownotErronlyHasCharsparseAddressparseAuthorAddressparseAuthorOrShareAddressparseShareAddressparseTemplatequeryByGlobqueryByTemplaterandomIdreplaceAllsetDefaultLogLevelsetGlobalCryptoDriversetLogLevelsleepsortedInPlacestringLengthInBytesstringToBytesupdateLogLevelsCmpLogLevel
mod.ts (default module)
c
c
c
c
c
c
c
c
c
c
c
c
c
c
c
c
c
c
c
c
c
c
c
c
c
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
T
T
T
T
T
T
T
T
T
T
T
T
T
T
T
T
T
T
T
T
T
T
T
T
T
T
T
T
T
T
T
T
T
T
T
T
T
T
T
T
T
T
T
T
T
T
T
T
T
T
T
T
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