{"action":"created","issue":{"url":"https://api.github.com/repos/DavyJonesLocker/client_side_validations/issues/615","labels_url":"https://api.github.com/repos/DavyJonesLocker/client_side_validations/issues/615/labels{/name}","comments_url":"https://api.github.com/repos/DavyJonesLocker/client_side_validations/issues/615/comments","events_url":"https://api.github.com/repos/DavyJonesLocker/client_side_validations/issues/615/events","html_url":"https://github.com/DavyJonesLocker/client_side_validations/issues/615","id":76501389,"number":615,"title":"Regex in generated script differs from regex in model","user":{"login":"adekbadek","id":7383192,"avatar_url":"https://avatars.githubusercontent.com/u/7383192?v=3","gravatar_id":"","url":"https://api.github.com/users/adekbadek","html_url":"https://github.com/adekbadek","followers_url":"https://api.github.com/users/adekbadek/followers","following_url":"https://api.github.com/users/adekbadek/following{/other_user}","gists_url":"https://api.github.com/users/adekbadek/gists{/gist_id}","starred_url":"https://api.github.com/users/adekbadek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adekbadek/subscriptions","organizations_url":"https://api.github.com/users/adekbadek/orgs","repos_url":"https://api.github.com/users/adekbadek/repos","events_url":"https://api.github.com/users/adekbadek/events{/privacy}","received_events_url":"https://api.github.com/users/adekbadek/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/DavyJonesLocker/client_side_validations/labels/help%20wanted","name":"help wanted","color":"009800"},{"url":"https://api.github.com/repos/DavyJonesLocker/client_side_validations/labels/javascript","name":"javascript","color":"fbca04"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-05-14T21:49:06Z","updated_at":"2015-10-16T21:39:31Z","closed_at":"2015-10-16T21:39:31Z","body":"Hi, I have a format validation in my user model to allow all letters (non-latin too), numbers, dashes and underscores:\r\n  validates_format_of :username, :with => /\\A[\\p{L}0-9\\\\-\\_\\s]+\\z/\r\nNon-latin chars pass the server-side validation, however the client-side shows errors. I looked at the script generated under the form and it has the following regex:\r\n  ^[\\\\\\p{L}0-9\\\\\\\\-_\\\\\\s]+$\r\nwhich means something different"},"comment":{"url":"https://api.github.com/repos/DavyJonesLocker/client_side_validations/issues/comments/148842858","html_url":"https://github.com/DavyJonesLocker/client_side_validations/issues/615#issuecomment-148842858","issue_url":"https://api.github.com/repos/DavyJonesLocker/client_side_validations/issues/615","id":148842858,"user":{"login":"tagliala","id":556268,"avatar_url":"https://avatars.githubusercontent.com/u/556268?v=3","gravatar_id":"","url":"https://api.github.com/users/tagliala","html_url":"https://github.com/tagliala","followers_url":"https://api.github.com/users/tagliala/followers","following_url":"https://api.github.com/users/tagliala/following{/other_user}","gists_url":"https://api.github.com/users/tagliala/gists{/gist_id}","starred_url":"https://api.github.com/users/tagliala/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tagliala/subscriptions","organizations_url":"https://api.github.com/users/tagliala/orgs","repos_url":"https://api.github.com/users/tagliala/repos","events_url":"https://api.github.com/users/tagliala/events{/privacy}","received_events_url":"https://api.github.com/users/tagliala/received_events","type":"User","site_admin":false},"created_at":"2015-10-16T21:39:31Z","updated_at":"2015-10-16T21:39:31Z","body":"Fixed via #637"}}