{"action":"created","issue":{"url":"https://api.github.com/repos/silentrob/superscript/issues/130","labels_url":"https://api.github.com/repos/silentrob/superscript/issues/130/labels{/name}","comments_url":"https://api.github.com/repos/silentrob/superscript/issues/130/comments","events_url":"https://api.github.com/repos/silentrob/superscript/issues/130/events","html_url":"https://github.com/silentrob/superscript/issues/130","id":98383331,"number":130,"title":"Alternates parsing removes all parenthesis from replies","user":{"login":"karovski","id":7289443,"avatar_url":"https://avatars.githubusercontent.com/u/7289443?v=3","gravatar_id":"","url":"https://api.github.com/users/karovski","html_url":"https://github.com/karovski","followers_url":"https://api.github.com/users/karovski/followers","following_url":"https://api.github.com/users/karovski/following{/other_user}","gists_url":"https://api.github.com/users/karovski/gists{/gist_id}","starred_url":"https://api.github.com/users/karovski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/karovski/subscriptions","organizations_url":"https://api.github.com/users/karovski/orgs","repos_url":"https://api.github.com/users/karovski/repos","events_url":"https://api.github.com/users/karovski/events{/privacy}","received_events_url":"https://api.github.com/users/karovski/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-31T12:42:14Z","updated_at":"2015-08-18T19:55:23Z","closed_at":null,"body":"As per title. This makes it impossible to save replies with words in parenthesis due to the way it's parsed.\r\n\r\nMethod in question: https://github.com/silentrob/superscript/blob/master/lib/processtags.js#L92-L117\r\n\r\nI did a workaround for this issue by using an alternate syntax for alternates which uses double parenthesis: `(( alternate1 | alternate2 | ... ))`\r\n\r\nThe relevant issue and commit are https://github.com/eternime/superscript/issues/2 and https://github.com/eternime/superscript/commit/7b249857c2f9bcb20aa523533ec0adb774830742\r\n\r\nAdditionally, the original regex removes all whitespaces _after_ the alternates group, whereas the workaround only removes them from within the group."},"comment":{"url":"https://api.github.com/repos/silentrob/superscript/issues/comments/132332168","html_url":"https://github.com/silentrob/superscript/issues/130#issuecomment-132332168","issue_url":"https://api.github.com/repos/silentrob/superscript/issues/130","id":132332168,"user":{"login":"silentrob","id":15984,"avatar_url":"https://avatars.githubusercontent.com/u/15984?v=3","gravatar_id":"","url":"https://api.github.com/users/silentrob","html_url":"https://github.com/silentrob","followers_url":"https://api.github.com/users/silentrob/followers","following_url":"https://api.github.com/users/silentrob/following{/other_user}","gists_url":"https://api.github.com/users/silentrob/gists{/gist_id}","starred_url":"https://api.github.com/users/silentrob/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/silentrob/subscriptions","organizations_url":"https://api.github.com/users/silentrob/orgs","repos_url":"https://api.github.com/users/silentrob/repos","events_url":"https://api.github.com/users/silentrob/events{/privacy}","received_events_url":"https://api.github.com/users/silentrob/received_events","type":"User","site_admin":false},"created_at":"2015-08-18T19:55:23Z","updated_at":"2015-08-18T19:55:23Z","body":"Okay, so litteral parenthesis were being removed too agressivly. \r\nDoes it make sense to change the reply alt syntax or just escape parens? \r\n`I like \\( this or that \\)`\r\n\r\nOr if we go to a double parenthesis then we should probably change the alternate syntax on the gambit side too.\r\n\r\nThoughts?"}}