Skip to content
This repository has been archived by the owner on May 8, 2024. It is now read-only.

Commit

Permalink
Added compatibility for older versions
Browse files Browse the repository at this point in the history
  • Loading branch information
dploeger committed Jan 11, 2018
1 parent 904707f commit 134a2ab
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion lib/converter/BucketNodeConverter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,10 @@ export class BucketNodeConverter implements NodeConverterInterface {

let patternType: string

if (match.hasOwnProperty(options.bucketPattern.patternTypeGroupName)) {
if (
match.hasOwnProperty(options.bucketPattern.patternTypeGroupName) &&
match[options.bucketPattern.patternTypeGroupName] !== undefined
) {
patternType = match[options.bucketPattern.patternTypeGroupName]
} else {
this._log.warn(
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "socko-converter-file",
"version": "0.4.0",
"version": "0.5.0",
"description": "Converting file hierarchies to SOCKO! nodes",
"keywords": [
"socko",
Expand Down

0 comments on commit 134a2ab

Please sign in to comment.