You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After some investigation there is an issue with parsing regexps in the constraint grammar which does a greedy match on the first regexp. Im working on fixing the parser for the regexp and will have a fix soon.
* Added ability to `import` other nools files to create composible rules files [noolsjs#58](noolsjs#58)
* When using `global` to require other files you can now require other files relative to the nools file
* Added uglify-js as a dependency instead of devDependency noolsjs#71
* Fixed issue noolsjs#61 where transpile would not properly escape `"` character.
* Fixed issue noolsjs#66 and noolsjs#67 where regular expression matching was too greedy.
* Fixed issue noolsjs#62 where constraints with a `"` character would produce invalid javascript when `transpiling`.
* Fixed issue noolsjs#69 where rules names with a `'` character in a rule would produce invalid javascript when `transpiling`.
I have an object defined thus:
I'm asserting a fact like this:
Then looking for it in a when clause like this:
The above fails to trigger the rule. The following does trigger the rule:
For some reason, two string comparisons in the same rule don't want to play nice.
The text was updated successfully, but these errors were encountered: