Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

uses a plugin that breaks node #33

Open
nitramreffehcs opened this issue Dec 17, 2020 · 0 comments
Open

uses a plugin that breaks node #33

nitramreffehcs opened this issue Dec 17, 2020 · 0 comments

Comments

@nitramreffehcs
Copy link

sadly words-to-numbers uses "clj-fuzzy" a module that attaches a new function, called "s" to the Date prototype

this explains some of the other issues here, and it makes this module unusable, it breaks modules like 'later' and any other module that attaches a property called "s" on a Date (also a bad idea, but that doesn't interfere with anyone else)

the offending code in clj-fuzzy

Date.prototype.s = function (a, b) { return b instanceof Date && this.valueOf() === b.valueOf() }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant