pregx icon indicating copy to clipboard operation
pregx copied to clipboard

how on earth do I call the functions?

Open whatsdis opened this issue 5 years ago • 0 comments

after I include the pregx.min.js I call getCreditCardNumber("test2348-2342-2342-2342"); but the function is undefined

I really wish there was an es5 version of this. I cannot get the es6 to work. I am trying to use pregx.js in the browser because it would not work on node.js v8, as soon as I call pregx from a nodejs script, it will error out with the import statements.

I don't know why I am having such problem with pregx. All my other modules I installed from npm did not have such issues.

<script type="text/javascript" src="pregx.min.js"></script>

thanks

whatsdis avatar Nov 29 '19 01:11 whatsdis