{"action":"created","issue":{"url":"https://api.github.com/repos/fbrctr/fabricator-assemble/issues/36","repository_url":"https://api.github.com/repos/fbrctr/fabricator-assemble","labels_url":"https://api.github.com/repos/fbrctr/fabricator-assemble/issues/36/labels{/name}","comments_url":"https://api.github.com/repos/fbrctr/fabricator-assemble/issues/36/comments","events_url":"https://api.github.com/repos/fbrctr/fabricator-assemble/issues/36/events","html_url":"https://github.com/fbrctr/fabricator-assemble/issues/36","id":134494055,"number":36,"title":"Regex remove any digit of files names","user":{"login":"alienlebarge","id":611234,"avatar_url":"https://avatars.githubusercontent.com/u/611234?v=3","gravatar_id":"","url":"https://api.github.com/users/alienlebarge","html_url":"https://github.com/alienlebarge","followers_url":"https://api.github.com/users/alienlebarge/followers","following_url":"https://api.github.com/users/alienlebarge/following{/other_user}","gists_url":"https://api.github.com/users/alienlebarge/gists{/gist_id}","starred_url":"https://api.github.com/users/alienlebarge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alienlebarge/subscriptions","organizations_url":"https://api.github.com/users/alienlebarge/orgs","repos_url":"https://api.github.com/users/alienlebarge/repos","events_url":"https://api.github.com/users/alienlebarge/events{/privacy}","received_events_url":"https://api.github.com/users/alienlebarge/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-02-18T06:36:05Z","updated_at":"2016-02-18T08:31:08Z","closed_at":null,"body":"The regex that remove the digit prefixes from the file name to create the Handlebar template also remove any digit.\r\n\r\n`/(\\d+[\\-\\.]?)+/ig`\r\nhttps://regex101.com/r/hK0rZ2/3\r\n\r\nIt means that when you have files like that:\r\n```\r\natoms/01-headings/01-heading-level-01.html\r\natoms/01-headings/01-heading-level-1.html\r\natoms/01-headings/02-heading-level-02.html\r\natoms/01-headings/02-heading-level-2.html\r\n\r\natoms/01-headings/01-heading-level-01/01-headings-level-01-red.html\r\n```\r\nyou will get an error.\r\n\r\nsee #31\r\n\r\n## Workaround\r\n\r\nfor now I use this workaround:\r\n```\r\natoms/01-headings/01-heading-level-one.html\r\natoms/01-headings/02-heading-level-two.html\r\n...\r\n```"},"comment":{"url":"https://api.github.com/repos/fbrctr/fabricator-assemble/issues/comments/185596837","html_url":"https://github.com/fbrctr/fabricator-assemble/issues/36#issuecomment-185596837","issue_url":"https://api.github.com/repos/fbrctr/fabricator-assemble/issues/36","id":185596837,"user":{"login":"alienlebarge","id":611234,"avatar_url":"https://avatars.githubusercontent.com/u/611234?v=3","gravatar_id":"","url":"https://api.github.com/users/alienlebarge","html_url":"https://github.com/alienlebarge","followers_url":"https://api.github.com/users/alienlebarge/followers","following_url":"https://api.github.com/users/alienlebarge/following{/other_user}","gists_url":"https://api.github.com/users/alienlebarge/gists{/gist_id}","starred_url":"https://api.github.com/users/alienlebarge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alienlebarge/subscriptions","organizations_url":"https://api.github.com/users/alienlebarge/orgs","repos_url":"https://api.github.com/users/alienlebarge/repos","events_url":"https://api.github.com/users/alienlebarge/events{/privacy}","received_events_url":"https://api.github.com/users/alienlebarge/received_events","type":"User","site_admin":false},"created_at":"2016-02-18T08:31:08Z","updated_at":"2016-02-18T08:31:08Z","body":"[`/(^|\\/)\\d+[.-]?/img, '$1'`](https://regex101.com/r/hK0rZ2/9 \"regex 101 exemple\") seems to be a good solution"}}