Skip to content

Commit 5ddf7cb

Browse files
committed
fix: bpmn2 xml prefix
1 parent ab40fa1 commit 5ddf7cb

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@vhidvz/wfjs",
3-
"version": "5.0.3",
3+
"version": "5.0.4",
44
"description": "Workflow Engine (BPMN Engine)",
55
"main": "index.js",
66
"types": "index.d.ts",

src/utils.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ export const readFile = (path: string): string => fs.readFileSync(path, 'utf8');
1919
* @returns A BPMNSchema object
2020
*/
2121
export const parse = (xml: string) => {
22+
xml = xml.replace(/bpmn\d*:/g, 'bpmn:');
23+
2224
let parse;
2325
parseString(xml, { async: false }, (err, result) => {
2426
if (err) throw err;

0 commit comments

Comments
 (0)