HEX
Server: Microsoft-IIS/8.5
System: Windows NT YDAWBH120 6.3 build 9600 (Windows Server 2012 R2 Standard Edition) AMD64
User: tentjecom_web (0)
PHP: 7.4.14
Disabled: NONE
Upload Files
File: D:/HostingSpaces/SBogers10/shop.komma.nl/node_modules/vue-currency-input/src/utils/stringUtils.js
export const escapeRegExp = (str) => str.replace(/[.*+?^${}()|[\]\\]/g, '\\$&')

export const removeLeadingZeros = (str) => str.replace(/^0+(0$|[^0])/, '$1')

export const count = (str, search) => (str.match(new RegExp(escapeRegExp(search), 'g')) || []).length

export const startsWith = (str, search) => str.substring(0, search.length) === search

export const substringBefore = (str, search) => str.substring(0, str.indexOf(search))