{"action":"created","issue":{"url":"https://api.github.com/repos/cuberite/cuberite/issues/2407","labels_url":"https://api.github.com/repos/cuberite/cuberite/issues/2407/labels{/name}","comments_url":"https://api.github.com/repos/cuberite/cuberite/issues/2407/comments","events_url":"https://api.github.com/repos/cuberite/cuberite/issues/2407/events","html_url":"https://github.com/cuberite/cuberite/issues/2407","id":98030843,"number":2407,"title":"Use Regular Expressions instead of pattern matching in the CheckBasicStyles-script","user":{"login":"bibo38","id":1812304,"avatar_url":"https://avatars.githubusercontent.com/u/1812304?v=3","gravatar_id":"","url":"https://api.github.com/users/bibo38","html_url":"https://github.com/bibo38","followers_url":"https://api.github.com/users/bibo38/followers","following_url":"https://api.github.com/users/bibo38/following{/other_user}","gists_url":"https://api.github.com/users/bibo38/gists{/gist_id}","starred_url":"https://api.github.com/users/bibo38/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bibo38/subscriptions","organizations_url":"https://api.github.com/users/bibo38/orgs","repos_url":"https://api.github.com/users/bibo38/repos","events_url":"https://api.github.com/users/bibo38/events{/privacy}","received_events_url":"https://api.github.com/users/bibo38/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-29T21:15:43Z","updated_at":"2015-07-29T21:28:45Z","closed_at":null,"body":"Like the title says, the current CheckBasicStyles.lua-script uses [pattern matching](http://www.lua.org/manual/5.2/manual.html#6.4.1) to verify the Code-style.\r\nIt has some nice things, like the *%* as an escape character, but lacks in terms of possibilities.\r\n\r\nE.g. The hex-numbers should have even digits length(a todo in the script), but with Pattern matching, this is not possible.\r\n\r\nSo I would suggest to create annother script or change the existing script to use (PCRE) Regular Expressions."},"comment":{"url":"https://api.github.com/repos/cuberite/cuberite/issues/comments/126100470","html_url":"https://github.com/cuberite/cuberite/issues/2407#issuecomment-126100470","issue_url":"https://api.github.com/repos/cuberite/cuberite/issues/2407","id":126100470,"user":{"login":"NiLSPACE","id":1160867,"avatar_url":"https://avatars.githubusercontent.com/u/1160867?v=3","gravatar_id":"","url":"https://api.github.com/users/NiLSPACE","html_url":"https://github.com/NiLSPACE","followers_url":"https://api.github.com/users/NiLSPACE/followers","following_url":"https://api.github.com/users/NiLSPACE/following{/other_user}","gists_url":"https://api.github.com/users/NiLSPACE/gists{/gist_id}","starred_url":"https://api.github.com/users/NiLSPACE/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NiLSPACE/subscriptions","organizations_url":"https://api.github.com/users/NiLSPACE/orgs","repos_url":"https://api.github.com/users/NiLSPACE/repos","events_url":"https://api.github.com/users/NiLSPACE/events{/privacy}","received_events_url":"https://api.github.com/users/NiLSPACE/received_events","type":"User","site_admin":false},"created_at":"2015-07-29T21:28:45Z","updated_at":"2015-07-29T21:28:45Z","body":"But Lua doesn't have regex by default. We'd have to use a different language or download a regex library."}}