{"action":"created","issue":{"url":"https://api.github.com/repos/AlexeyGrishin/schemasaurus/issues/5","labels_url":"https://api.github.com/repos/AlexeyGrishin/schemasaurus/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/AlexeyGrishin/schemasaurus/issues/5/comments","events_url":"https://api.github.com/repos/AlexeyGrishin/schemasaurus/issues/5/events","html_url":"https://github.com/AlexeyGrishin/schemasaurus/issues/5","id":73927548,"number":5,"title":"maxLength/minLength Unicode fix","user":{"login":"brettz9","id":20234,"avatar_url":"https://avatars.githubusercontent.com/u/20234?v=3","gravatar_id":"","url":"https://api.github.com/users/brettz9","html_url":"https://github.com/brettz9","followers_url":"https://api.github.com/users/brettz9/followers","following_url":"https://api.github.com/users/brettz9/following{/other_user}","gists_url":"https://api.github.com/users/brettz9/gists{/gist_id}","starred_url":"https://api.github.com/users/brettz9/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brettz9/subscriptions","organizations_url":"https://api.github.com/users/brettz9/orgs","repos_url":"https://api.github.com/users/brettz9/repos","events_url":"https://api.github.com/users/brettz9/events{/privacy}","received_events_url":"https://api.github.com/users/brettz9/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-05-07T10:10:11Z","updated_at":"2015-05-11T10:39:38Z","closed_at":null,"body":"Hi,\r\n\r\nI believe all you need for `maxLength` and `minLength` support is to install and require [grapheme-breaker](https://github.com/devongovett/grapheme-breaker) and use the `countBreaks` method to get the Unicode grapheme-cluster-friendly length of the supplied string.\r\n\r\n(I'd do a PR, but I'm not sure how to get the `build` feature in package.json to work; running `npm build` or `npm build .` did not do anything for me (on Windows).)"},"comment":{"url":"https://api.github.com/repos/AlexeyGrishin/schemasaurus/issues/comments/100862960","html_url":"https://github.com/AlexeyGrishin/schemasaurus/issues/5#issuecomment-100862960","issue_url":"https://api.github.com/repos/AlexeyGrishin/schemasaurus/issues/5","id":100862960,"user":{"login":"AlexeyGrishin","id":2125405,"avatar_url":"https://avatars.githubusercontent.com/u/2125405?v=3","gravatar_id":"","url":"https://api.github.com/users/AlexeyGrishin","html_url":"https://github.com/AlexeyGrishin","followers_url":"https://api.github.com/users/AlexeyGrishin/followers","following_url":"https://api.github.com/users/AlexeyGrishin/following{/other_user}","gists_url":"https://api.github.com/users/AlexeyGrishin/gists{/gist_id}","starred_url":"https://api.github.com/users/AlexeyGrishin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlexeyGrishin/subscriptions","organizations_url":"https://api.github.com/users/AlexeyGrishin/orgs","repos_url":"https://api.github.com/users/AlexeyGrishin/repos","events_url":"https://api.github.com/users/AlexeyGrishin/events{/privacy}","received_events_url":"https://api.github.com/users/AlexeyGrishin/received_events","type":"User","site_admin":false},"created_at":"2015-05-11T10:39:38Z","updated_at":"2015-05-11T10:39:38Z","body":"Hi,\r\nThank you for your help. For my current project I did not need to process unicode strings that's why I skipped support of them in validator.\r\n\r\nYou need to call `npm run build`. Not sure why but only `test` script has a shortcut `npm test`, other scripts shall be called with `npm run <script>`.\r\n\r\nYeah, `node_modules` directory shall be in `.gitignore`, just forgot to put it there."}}