{"action":"created","issue":{"url":"https://api.github.com/repos/preaction/Log-Any/issues/56","repository_url":"https://api.github.com/repos/preaction/Log-Any","labels_url":"https://api.github.com/repos/preaction/Log-Any/issues/56/labels{/name}","comments_url":"https://api.github.com/repos/preaction/Log-Any/issues/56/comments","events_url":"https://api.github.com/repos/preaction/Log-Any/issues/56/events","html_url":"https://github.com/preaction/Log-Any/issues/56","id":217516503,"number":56,"title":"Test failures on Windows due to file names in regex patterns","user":{"login":"nanis","id":288163,"avatar_url":"https://avatars1.githubusercontent.com/u/288163?v=3","gravatar_id":"","url":"https://api.github.com/users/nanis","html_url":"https://github.com/nanis","followers_url":"https://api.github.com/users/nanis/followers","following_url":"https://api.github.com/users/nanis/following{/other_user}","gists_url":"https://api.github.com/users/nanis/gists{/gist_id}","starred_url":"https://api.github.com/users/nanis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nanis/subscriptions","organizations_url":"https://api.github.com/users/nanis/orgs","repos_url":"https://api.github.com/users/nanis/repos","events_url":"https://api.github.com/users/nanis/events{/privacy}","received_events_url":"https://api.github.com/users/nanis/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-03-28T10:35:00Z","updated_at":"2017-03-28T20:51:36Z","closed_at":null,"body":"`__FILE__` on a `perl` compiled using Microsoft tools on Windows contains `\\` as directory separators. Inserting such a string into a regex pattern is problematic because, for example, `\\f` is form feed:\r\n\r\n```text\r\n$ perl -E \"say 't\\filescreen.t' =~ /t\\filescreen\\.t/ ? 'Yes': 'No'\r\nNo\r\n```\r\n\r\nFailing tests are below.  Using `\\Q@{[__FILE__]}\\E` in the patterns should fix those spurious failures. Better yet, why not just define:\r\n\r\n```\r\nmy $__FILE__ = quotemeta __FILE__;\r\n```\r\n\r\nat the top of the test script and use that in the patterns?\r\n\r\n```text\r\nt\\filescreen.t .............. 1/25\r\n#   Failed test 'warning is correct'\r\n#   at t\\filescreen.t line 37.\r\n#                   'Invalid log level \"FOOBAR\". Defaulting to \"trace\" at t\\filescreen.t line 33.\r\n# '\r\n#     doesn't match '(?^:Invalid log level \"FOOBAR\"\\. Defaulting to \"trace\" at t\\filescreen.t line \\d+)'\r\n\r\n#   Failed test 'warning is correct'\r\n#   at t\\filescreen.t line 67.\r\n#                   'Invalid log level \"FOOBAR\". Defaulting to \"trace\" at t\\file screen.t line 63.\r\n# '\r\n#     doesn't match '(?^:Invalid log level \"FOOBAR\"\\. Defaulting to \"trace\" at t\\filescreen.t line \\d+)'\r\n\r\n#   Failed test 'warning is correct'\r\n#   at t\\filescreen.t line 97.\r\n#                   'Invalid log level \"FOOBAR\". Defaulting to \"trace\" at t\\filescreen.t line 93.\r\n# '\r\n#     doesn't match '(?^:Invalid log level \"FOOBAR\"\\. Defaulting to \"trace\" at t\\filescreen.t line \\d+)'\r\n# Looks like you failed 3 tests of 25.```\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/preaction/Log-Any/issues/comments/289900725","html_url":"https://github.com/preaction/Log-Any/issues/56#issuecomment-289900725","issue_url":"https://api.github.com/repos/preaction/Log-Any/issues/56","id":289900725,"user":{"login":"preaction","id":53707,"avatar_url":"https://avatars3.githubusercontent.com/u/53707?v=3","gravatar_id":"","url":"https://api.github.com/users/preaction","html_url":"https://github.com/preaction","followers_url":"https://api.github.com/users/preaction/followers","following_url":"https://api.github.com/users/preaction/following{/other_user}","gists_url":"https://api.github.com/users/preaction/gists{/gist_id}","starred_url":"https://api.github.com/users/preaction/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/preaction/subscriptions","organizations_url":"https://api.github.com/users/preaction/orgs","repos_url":"https://api.github.com/users/preaction/repos","events_url":"https://api.github.com/users/preaction/events{/privacy}","received_events_url":"https://api.github.com/users/preaction/received_events","type":"User","site_admin":false},"created_at":"2017-03-28T20:51:36Z","updated_at":"2017-03-28T20:51:36Z","body":"... Always. I always always always miss this one. Thanks for the `quotemeta` suggestion, that's what I went with, and I'll push a release soon."}}
{"actor":{"display_login":"preaction"}}