Skip to content

Commit

Permalink
Merge pull request #50 from sakazuki/issue-48
Browse files Browse the repository at this point in the history
improve validation #48
  • Loading branch information
sakazuki authored Aug 9, 2020
2 parents 6dcc607 + 7c73eea commit 09b166c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
1. Access to https://www.draw.io/.
1. Select Save Option (ex. Decide Later...)
1. Select Menu [Extras]-[Plugins]
1. Click [Add]
1. Input https://cdn.jsdelivr.net/gh/sakazuki/[email protected].2/dist/aws-step-functions.js
1. Click [Add] and Click [Custom...]
1. Input https://cdn.jsdelivr.net/gh/sakazuki/[email protected].3/dist/aws-step-functions.js
1. [Apply]
1. Reload the page

Expand Down Expand Up @@ -87,6 +87,7 @@ node carlo.js
```

## Version history
- https://cdn.jsdelivr.net/gh/sakazuki/[email protected]/dist/aws-step-functions.js
- https://cdn.jsdelivr.net/gh/sakazuki/[email protected]/dist/aws-step-functions.js
- https://cdn.jsdelivr.net/gh/sakazuki/[email protected]/dist/aws-step-functions.js
- https://cdn.jsdelivr.net/gh/sakazuki/[email protected]/dist/aws-step-functions.js
Expand Down
2 changes: 1 addition & 1 deletion dist/aws-step-functions.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ export function linkStyle (url) {
}

export function _is (cell, name) {
return (cell && cell.value && (cell.value.getAttribute("type") == `awssf${name}`));
return (cell && cell.value && cell.value.getAttribute && (cell.value.getAttribute("type") == `awssf${name}`));
}
export function isAWSsf (cell) {
return (cell && (cell.awssf != null)) && (cell.value && cell.value.getAttribute("type") && cell.value.getAttribute("type").indexOf("awssf") == 0);
return (cell && (cell.awssf != null)) && (cell.value && cell.value.getAttribute && cell.value.getAttribute("type") && cell.value.getAttribute("type").indexOf("awssf") == 0);
}
export function isAWSconfig (cell) {
return _is(cell, 'AWSconfig');
Expand Down

0 comments on commit 09b166c

Please sign in to comment.