diff --git a/note-from-bitrix-task/info.json b/note-from-bitrix-task/info.json index 4f9f907..7cfdf73 100644 --- a/note-from-bitrix-task/info.json +++ b/note-from-bitrix-task/info.json @@ -3,7 +3,7 @@ "identifier": "note-from-bitrix-task", "script": "note-from-bitrix-task.qml", "authors": ["@pbek"], - "version": "0.0.2", + "version": "1.0.3", "minAppVersion": "17.05.6", "description" : "This script creates a menu item and a button that parses the text that was copied from a task webpage of the webservice Bitrix24 and creates a new note with a headline, the link to the task and the description." } diff --git a/note-from-bitrix-task/note-from-bitrix-task.qml b/note-from-bitrix-task/note-from-bitrix-task.qml index 1f01386..71e44ed 100644 --- a/note-from-bitrix-task/note-from-bitrix-task.qml +++ b/note-from-bitrix-task/note-from-bitrix-task.qml @@ -49,6 +49,13 @@ QtObject { var taskIdMatch = taskIdRegExp.exec(html); if (taskIdMatch !== null) { headline += " (#" + taskIdMatch[1] + ")"; + } else { + // do an other attempt to add the task id to the headline + taskIdRegExp = />(Task|Aufgabe) #(\d+) -(.+?)<\/div>/im;