Skip to content

Commit

Permalink
release 0.1.8
Browse files Browse the repository at this point in the history
  • Loading branch information
francescobianco committed Feb 8, 2019
1 parent 60f6885 commit 5858a11
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "yamlinc",
"version": "0.1.7",
"version": "0.1.8",
"license": "MIT",
"author": {
"name": "Francesco Bianco",
Expand Down
5 changes: 4 additions & 1 deletion src/yamlinc.js
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,10 @@ module.exports = {
let yamlinc = this;
return fs.readFileSync(file).toString()
.replace(this.getRegExpIncludeTag(), function (tag) {
return tag.replace(yamlinc.includeTag, yamlinc.includeTag + '_' + cuid().replace(/[\W]+/g, ''));
return tag.replace(
yamlinc.includeTag,
yamlinc.includeTag + '_' + (cuid().replace(/[\W]+/g, '') + '0123456789012345678901234').substr(0, 25)
);
});
},

Expand Down

0 comments on commit 5858a11

Please sign in to comment.