* Update ACS parser PEG.js script to include some missing functionality

* Regenerate acs_parser.js with latest pegjs & new rules
This commit is contained in:
Bryan Ashby 2017-02-24 23:38:30 -07:00
parent 79c1ad6ce6
commit 9a2b48ac47
2 changed files with 864 additions and 810 deletions

File diff suppressed because it is too large Load Diff

View File

@ -44,12 +44,12 @@
return client.node === value;
},
NP : function numberOfPosts() {
// :TODO: implement me!!!!
return false;
const postCount = parseInt(user.properties.post_count, 10);
return !isNaN(value) && postCount >= value;
},
NC : function numberOfCalls() {
// :TODO: implement me!!
return false;
const loginCount = parseInt(user.properties.login_count, 10);
return !isNaN(value) && loginCount >= value;
},
SC : function isSecureConnection() {
return client.session.isSecure;