{"action":"created","issue":{"url":"https://api.github.com/repos/Roll20/roll20-api-scripts/issues/240","repository_url":"https://api.github.com/repos/Roll20/roll20-api-scripts","labels_url":"https://api.github.com/repos/Roll20/roll20-api-scripts/issues/240/labels{/name}","comments_url":"https://api.github.com/repos/Roll20/roll20-api-scripts/issues/240/comments","events_url":"https://api.github.com/repos/Roll20/roll20-api-scripts/issues/240/events","html_url":"https://github.com/Roll20/roll20-api-scripts/pull/240","id":139959790,"number":240,"title":"Fix unable to find resource","user":{"login":"TheWhiteWolves","id":1471503,"avatar_url":"https://avatars.githubusercontent.com/u/1471503?v=3","gravatar_id":"","url":"https://api.github.com/users/TheWhiteWolves","html_url":"https://github.com/TheWhiteWolves","followers_url":"https://api.github.com/users/TheWhiteWolves/followers","following_url":"https://api.github.com/users/TheWhiteWolves/following{/other_user}","gists_url":"https://api.github.com/users/TheWhiteWolves/gists{/gist_id}","starred_url":"https://api.github.com/users/TheWhiteWolves/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TheWhiteWolves/subscriptions","organizations_url":"https://api.github.com/users/TheWhiteWolves/orgs","repos_url":"https://api.github.com/users/TheWhiteWolves/repos","events_url":"https://api.github.com/users/TheWhiteWolves/events{/privacy}","received_events_url":"https://api.github.com/users/TheWhiteWolves/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-03-10T17:34:26Z","updated_at":"2016-03-11T16:49:02Z","closed_at":"2016-03-11T16:49:02Z","pull_request":{"url":"https://api.github.com/repos/Roll20/roll20-api-scripts/pulls/240","html_url":"https://github.com/Roll20/roll20-api-scripts/pull/240","diff_url":"https://github.com/Roll20/roll20-api-scripts/pull/240.diff","patch_url":"https://github.com/Roll20/roll20-api-scripts/pull/240.patch"},"body":"It seems that the sheet now gives the charname encapsulated in {{}} which is causing the script to not be able to find the resources, e.g. ammofull was calculated to be \"Bolts {{charname=Mark's Character}}\" instead of \"Bolts\""},"comment":{"url":"https://api.github.com/repos/Roll20/roll20-api-scripts/issues/comments/195447362","html_url":"https://github.com/Roll20/roll20-api-scripts/pull/240#issuecomment-195447362","issue_url":"https://api.github.com/repos/Roll20/roll20-api-scripts/issues/240","id":195447362,"user":{"login":"SteveKoontz","id":421658,"avatar_url":"https://avatars.githubusercontent.com/u/421658?v=3","gravatar_id":"","url":"https://api.github.com/users/SteveKoontz","html_url":"https://github.com/SteveKoontz","followers_url":"https://api.github.com/users/SteveKoontz/followers","following_url":"https://api.github.com/users/SteveKoontz/following{/other_user}","gists_url":"https://api.github.com/users/SteveKoontz/gists{/gist_id}","starred_url":"https://api.github.com/users/SteveKoontz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SteveKoontz/subscriptions","organizations_url":"https://api.github.com/users/SteveKoontz/orgs","repos_url":"https://api.github.com/users/SteveKoontz/repos","events_url":"https://api.github.com/users/SteveKoontz/events{/privacy}","received_events_url":"https://api.github.com/users/SteveKoontz/received_events","type":"User","site_admin":false},"created_at":"2016-03-11T16:49:02Z","updated_at":"2016-03-11T16:49:02Z","body":"Hey, thanks for pointing this out. Your fix won't work because it breaks it in the other direction. The original script only works if you don't have the \"Add Character Name To Templates\" option turned off. And your way only works with it turned on. I'll push out code today that should fix it regardless. "}}