UNPKG

@frakters/nft-lending-v2

Version:

Client library for interacting with nft lenging solana program

11 lines (10 loc) 466 B
"use strict"; // https://github.com/pancakeswap/pancake-swap-interface/blob/master/src/utils/index.ts Object.defineProperty(exports, "__esModule", { value: true }); exports.escapeRegExp = exports.inputRegex = void 0; // eslint-disable-next-line exports.inputRegex = RegExp(`^\\d*(?:\\\\[.])?\\d*$`); function escapeRegExp(string) { return string.replace(/[.*+?^${}()|[\]\\]/g, '\\$&'); // $& means the whole matched string } exports.escapeRegExp = escapeRegExp;