Skip to content

Commit

Permalink
n3Test: now a small array-full JSON data
Browse files Browse the repository at this point in the history
  • Loading branch information
lolive committed Jun 14, 2013
1 parent 1d08759 commit 79e91de
Show file tree
Hide file tree
Showing 2 changed files with 7,958 additions and 5 deletions.
2 changes: 1 addition & 1 deletion jsont.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ function jsonT(self, rules) {
return Object.keys(rules)
.filter(function rulesEndingByX
(ruleName){
return (x.match(ruleName+'$')?true:false)})
return x.indexOf(ruleName, x.length - ruleName.length) !== -1})
.sort(function longestFirst
(ruleName1, ruleName2)
{return ruleName1.length<ruleName2.length})
Expand Down
Loading

0 comments on commit 79e91de

Please sign in to comment.