Skip to content

Commit

Permalink
Merge branch 'release/1.4.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
IreneStr committed Aug 6, 2019
2 parents 8ae4de1 + dbf70a2 commit d6d7598
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -163,9 +163,12 @@ readme: {
```

## Release History
### 1.4.2
- Fixes a bug where the stable version would not be updated in README.md when running the update-version task.

### 1.4.1
- Fixes a bug where the initializer regex in the update version config would never match.
- The update-version tasks now accepts both strings and regexes in `options.regEx`.
- The update-version task now accepts both strings and regexes in `options.regEx`.

### 1.4.0
- Add .min as possible extension in rtlcss.
Expand Down
8 changes: 8 additions & 0 deletions config/update-version.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,14 @@ module.exports = {
},
src: "readme.txt",
},
readmeMd: {
options: {
regEx: /(Stable tag:\s+)(\d+(\.\d+){0,3})([^\n^\.\d]?.*?)(\n)/,
preVersionMatch: "$1",
postVersionMatch: "$5",
},
src: "README.md",
},

// When changing or adding entries, make sure to update `aliases.yml` for "update-version-trunk".
pluginFile: {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@yoast/grunt-plugin-tasks",
"description": "Custom Yoast grunt tasks",
"version": "1.4.1",
"version": "1.4.2",
"homepage": "https://github.com/Yoast/",
"repository": {
"type": "git",
Expand Down

0 comments on commit d6d7598

Please sign in to comment.