Skip to content

Commit

Permalink
Merge branch 'master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
license2e authored Apr 10, 2019
2 parents 1a2229c + 0294fa3 commit 53154ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/utils/transform.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const path = require('path');
function transform(dataStr, key, filePath, process) {
return new Promise((resolve, reject) => {
let dataString = dataStr;
const refMatches = dataString.match(/{"\$ref":"(?!#)(.*?)"}/g);
const refMatches = dataString.match(/{"\$ref":"((?!#).*?)"}/g);
const baseDir = path.dirname(filePath);
if (refMatches && refMatches.length > 0) {
const refFileList = [];
Expand Down

0 comments on commit 53154ac

Please sign in to comment.