{"action":"created","issue":{"url":"https://api.github.com/repos/UpdateExpress/OutputProcessorExtension/issues/2","repository_url":"https://api.github.com/repos/UpdateExpress/OutputProcessorExtension","labels_url":"https://api.github.com/repos/UpdateExpress/OutputProcessorExtension/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/UpdateExpress/OutputProcessorExtension/issues/2/comments","events_url":"https://api.github.com/repos/UpdateExpress/OutputProcessorExtension/issues/2/events","html_url":"https://github.com/UpdateExpress/OutputProcessorExtension/issues/2","id":200870578,"number":2,"title":"Изменить метод НормализироватьИмяКолонки","user":{"login":"vandalsvq","id":16002961,"avatar_url":"https://avatars.githubusercontent.com/u/16002961?v=3","gravatar_id":"","url":"https://api.github.com/users/vandalsvq","html_url":"https://github.com/vandalsvq","followers_url":"https://api.github.com/users/vandalsvq/followers","following_url":"https://api.github.com/users/vandalsvq/following{/other_user}","gists_url":"https://api.github.com/users/vandalsvq/gists{/gist_id}","starred_url":"https://api.github.com/users/vandalsvq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vandalsvq/subscriptions","organizations_url":"https://api.github.com/users/vandalsvq/orgs","repos_url":"https://api.github.com/users/vandalsvq/repos","events_url":"https://api.github.com/users/vandalsvq/events{/privacy}","received_events_url":"https://api.github.com/users/vandalsvq/received_events","type":"User","site_admin":false},"labels":[{"id":475786885,"url":"https://api.github.com/repos/UpdateExpress/OutputProcessorExtension/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"state":"open","locked":false,"assignee":{"login":"pbazeliuk","id":8529755,"avatar_url":"https://avatars.githubusercontent.com/u/8529755?v=3","gravatar_id":"","url":"https://api.github.com/users/pbazeliuk","html_url":"https://github.com/pbazeliuk","followers_url":"https://api.github.com/users/pbazeliuk/followers","following_url":"https://api.github.com/users/pbazeliuk/following{/other_user}","gists_url":"https://api.github.com/users/pbazeliuk/gists{/gist_id}","starred_url":"https://api.github.com/users/pbazeliuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pbazeliuk/subscriptions","organizations_url":"https://api.github.com/users/pbazeliuk/orgs","repos_url":"https://api.github.com/users/pbazeliuk/repos","events_url":"https://api.github.com/users/pbazeliuk/events{/privacy}","received_events_url":"https://api.github.com/users/pbazeliuk/received_events","type":"User","site_admin":false},"assignees":[{"login":"pbazeliuk","id":8529755,"avatar_url":"https://avatars.githubusercontent.com/u/8529755?v=3","gravatar_id":"","url":"https://api.github.com/users/pbazeliuk","html_url":"https://github.com/pbazeliuk","followers_url":"https://api.github.com/users/pbazeliuk/followers","following_url":"https://api.github.com/users/pbazeliuk/following{/other_user}","gists_url":"https://api.github.com/users/pbazeliuk/gists{/gist_id}","starred_url":"https://api.github.com/users/pbazeliuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pbazeliuk/subscriptions","organizations_url":"https://api.github.com/users/pbazeliuk/orgs","repos_url":"https://api.github.com/users/pbazeliuk/repos","events_url":"https://api.github.com/users/pbazeliuk/events{/privacy}","received_events_url":"https://api.github.com/users/pbazeliuk/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/UpdateExpress/OutputProcessorExtension/milestones/1","html_url":"https://github.com/UpdateExpress/OutputProcessorExtension/milestone/1","labels_url":"https://api.github.com/repos/UpdateExpress/OutputProcessorExtension/milestones/1/labels","id":2253024,"number":1,"title":"1.0.0","description":"","creator":{"login":"pbazeliuk","id":8529755,"avatar_url":"https://avatars.githubusercontent.com/u/8529755?v=3","gravatar_id":"","url":"https://api.github.com/users/pbazeliuk","html_url":"https://github.com/pbazeliuk","followers_url":"https://api.github.com/users/pbazeliuk/followers","following_url":"https://api.github.com/users/pbazeliuk/following{/other_user}","gists_url":"https://api.github.com/users/pbazeliuk/gists{/gist_id}","starred_url":"https://api.github.com/users/pbazeliuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pbazeliuk/subscriptions","organizations_url":"https://api.github.com/users/pbazeliuk/orgs","repos_url":"https://api.github.com/users/pbazeliuk/repos","events_url":"https://api.github.com/users/pbazeliuk/events{/privacy}","received_events_url":"https://api.github.com/users/pbazeliuk/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":0,"state":"open","created_at":"2017-01-15T19:20:40Z","updated_at":"2017-01-15T19:21:05Z","due_on":null,"closed_at":null},"comments":0,"created_at":"2017-01-15T14:05:15Z","updated_at":"2017-01-15T19:23:02Z","closed_at":null,"body":"Поскольку метод предусматривает не все возможные варианты использованных символов, предлагаю альтернативную реализацию. Единственное я удалил преобразование символов после пробелов в верхний регистр. Если надо восстановите самостоятельно, мне лично это оказалось ни к чему. Я все равно вместе с данными передаю информацию о колонках, типах и других свойствах.\r\n\r\nДля проверки использовал имя поля данных \"[~' йо'{' ё'}\"жик\"|\\/?><.,]\". Можно туда добавить числа и латиницу, но в принципе это уже не существенно.\r\n\r\n`// Возвращает нормализированное имя колонки, например, \"Товары.Сумма\"\r\n// к виду: \"ТоварыСумма\". СКД допускает большой набор символов в именах, \r\n// но преобразовывает не цифры и буквы к _, а пробелы удаляет.\r\n//\r\n// Параметры:\r\n// \tПутьКДанным - Строка - колонка имя которой необходимо нормализировать.\r\n//\r\n// Возвращаемое значение:\r\n// \tСтрока - нормализированное имя колонки.\r\n//\r\nФункция ПолучитьИмяКолонки(ПутьКДанным) Экспорт\r\n\tДиапазоны = Новый Массив;\r\n\tДиапазоны.Добавить(Новый Структура(\"Мин,Макс\", 48, 57));\t\t// цифры\r\n\tДиапазоны.Добавить(Новый Структура(\"Мин,Макс\", 65, 90));\t\t// латиница большие\r\n\tДиапазоны.Добавить(Новый Структура(\"Мин,Макс\", 97, 122));\t\t// латиница маленькие\r\n\tДиапазоны.Добавить(Новый Структура(\"Мин,Макс\", 1040, 1103));\t// кириллица\r\n\tДиапазоны.Добавить(Новый Структура(\"Мин,Макс\", 1025, 1025));\t// символ \"Ё\"\r\n\tДиапазоны.Добавить(Новый Структура(\"Мин,Макс\", 1105, 1105));\t// символ \"ё\"\r\n\tДиапазоны.Добавить(Новый Структура(\"Мин,Макс\", 95, 95));\t\t// символ \"_\"\t\r\n\t\r\n\tУдаляемыеСимволы = Новый Массив;\r\n\tУдаляемыеСимволы.Добавить(КодСимвола(Символы.НПП));\r\n\tУдаляемыеСимволы.Добавить(КодСимвола(\" \"));\r\n\tУдаляемыеСимволы.Добавить(КодСимвола(\".\"));\r\n\t\r\n\tДопустимыеСимволы = Новый Массив;\r\n\tДля Каждого СтруктураДиапазон Из Диапазоны Цикл\r\n\t\tДля КодСимвола = СтруктураДиапазон.Мин По СтруктураДиапазон.Макс Цикл\r\n\t\t\tДопустимыеСимволы.Добавить(КодСимвола);\r\n\t\tКонецЦикла; \r\n\tКонецЦикла;\r\n\t\r\n\tИмяКолонки = \"\";\r\n\tДля Индекс = 1 По СтрДлина(ПутьКДанным) Цикл\r\n\t\tЗначениеСимвола = Сред(ПутьКДанным, Индекс, 1);\r\n\t\tКодСимвола\t\t= КодСимвола(ЗначениеСимвола);\r\n\t\tЕсли УдаляемыеСимволы.Найти(КодСимвола) <> Неопределено Тогда\r\n\t\t\tЗначениеСимвола = \"\";\r\n\t\tИначеЕсли ДопустимыеСимволы.Найти(КодСимвола) = Неопределено Тогда\r\n\t\t\tЗначениеСимвола = \"_\";\r\n\t\tКонецЕсли;\r\n\t\t\r\n\t\tИмяКолонки = ИмяКолонки + ЗначениеСимвола;\r\n\tКонецЦикла;\r\n\t\r\n\tВозврат ИмяКолонки;\r\nКонецФункции`"},"comment":{"url":"https://api.github.com/repos/UpdateExpress/OutputProcessorExtension/issues/comments/272717187","html_url":"https://github.com/UpdateExpress/OutputProcessorExtension/issues/2#issuecomment-272717187","issue_url":"https://api.github.com/repos/UpdateExpress/OutputProcessorExtension/issues/2","id":272717187,"user":{"login":"pbazeliuk","id":8529755,"avatar_url":"https://avatars.githubusercontent.com/u/8529755?v=3","gravatar_id":"","url":"https://api.github.com/users/pbazeliuk","html_url":"https://github.com/pbazeliuk","followers_url":"https://api.github.com/users/pbazeliuk/followers","following_url":"https://api.github.com/users/pbazeliuk/following{/other_user}","gists_url":"https://api.github.com/users/pbazeliuk/gists{/gist_id}","starred_url":"https://api.github.com/users/pbazeliuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pbazeliuk/subscriptions","organizations_url":"https://api.github.com/users/pbazeliuk/orgs","repos_url":"https://api.github.com/users/pbazeliuk/repos","events_url":"https://api.github.com/users/pbazeliuk/events{/privacy}","received_events_url":"https://api.github.com/users/pbazeliuk/received_events","type":"User","site_admin":false},"created_at":"2017-01-15T19:23:02Z","updated_at":"2017-01-15T19:23:02Z","body":"Спасибо, за issue.\r\nПосле проверки и реализации тестов, обязательно внесу изменения.   "}}
{"actor":{"display_login":"pbazeliuk"}}