Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/samualtnorman/lib. A collection of common utilities I need. www.npmjs.com/package/@samual/lib
Something went wrong. Try again.
12345678export const WhitespaceRegex = /[ \t\n\r\u00A0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000]/g
export const countHackmudCharacters = (script: string) => script.replace(/\/\/.*/g, ``).replace(WhitespaceRegex, ``).length
export default countHackmudCharacters