{"action":"opened","issue":{"url":"https://api.github.com/repos/GreenImp/dice-roller/issues/1","labels_url":"https://api.github.com/repos/GreenImp/dice-roller/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/GreenImp/dice-roller/issues/1/comments","events_url":"https://api.github.com/repos/GreenImp/dice-roller/issues/1/events","html_url":"https://github.com/GreenImp/dice-roller/issues/1","id":98641997,"number":1,"title":"Allow additions either side of the die","user":{"login":"GreenImp","id":1846676,"avatar_url":"https://avatars.githubusercontent.com/u/1846676?v=3","gravatar_id":"","url":"https://api.github.com/users/GreenImp","html_url":"https://github.com/GreenImp","followers_url":"https://api.github.com/users/GreenImp/followers","following_url":"https://api.github.com/users/GreenImp/following{/other_user}","gists_url":"https://api.github.com/users/GreenImp/gists{/gist_id}","starred_url":"https://api.github.com/users/GreenImp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GreenImp/subscriptions","organizations_url":"https://api.github.com/users/GreenImp/orgs","repos_url":"https://api.github.com/users/GreenImp/repos","events_url":"https://api.github.com/users/GreenImp/events{/privacy}","received_events_url":"https://api.github.com/users/GreenImp/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-02T22:35:06Z","updated_at":"2015-08-02T22:35:06Z","closed_at":null,"body":"According to the [multiplier notation](https://en.wikipedia.org/wiki/Dice_notation#Multipliers) information, additions can be either side of the die:\r\n`1d6*4` and `4*1d6` are both valid.\r\n\r\nWith multiplication it doesn't really make a difference, but with subtraction and division it could produce completely different results.  \r\nFor example, `1d6-2` is completely different to `2-1d6`\r\n\r\nCurrently, the regular expression only matches additions *after* the die. It might be good if we could also handle those before the die."}}