Skip to content

Commit

Permalink
fix: bpmn2 xml prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
vhidvz committed Aug 7, 2023
1 parent ab40fa1 commit 5ddf7cb
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@vhidvz/wfjs",
"version": "5.0.3",
"version": "5.0.4",
"description": "Workflow Engine (BPMN Engine)",
"main": "index.js",
"types": "index.d.ts",
Expand Down
2 changes: 2 additions & 0 deletions src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ export const readFile = (path: string): string => fs.readFileSync(path, 'utf8');
* @returns A BPMNSchema object
*/
export const parse = (xml: string) => {
xml = xml.replace(/bpmn\d*:/g, 'bpmn:');

let parse;
parseString(xml, { async: false }, (err, result) => {
if (err) throw err;
Expand Down

0 comments on commit 5ddf7cb

Please sign in to comment.