Skip to content

Commit

Permalink
Merge branch 'release/2.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
noud-github committed Jul 5, 2021
2 parents bd031a1 + 981884d commit b1374a0
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ This plugin requires Grunt `^1.0.4`
If you haven't used [Grunt](http://gruntjs.com/) before, be sure to check out the [Getting Started](http://gruntjs.com/getting-started) guide, as it explains how to create a [Gruntfile](http://gruntjs.com/sample-gruntfile) as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:

```shell
npm install grunt-yoast-tasks --save-dev
npm i @yoast/grunt-plugin-tasks --save-dev
```

Once the plugin has been installed, it may be enabled inside your Gruntfile with this bit of JavaScript:
Expand Down Expand Up @@ -2175,6 +2175,10 @@ get-latest-pr-texts: {

## Release History

### 2.1.1
- Fixes a issue with Z cutting of changelog lines
- Fixes a issue with the install command. Props to [chrisschwartze](ttps://github.com/chrisschwartze).

### 2.1.1
- fix issue with finding correct yoast-cli option

Expand Down
4 changes: 2 additions & 2 deletions lib/logbuilder.js
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ class ChangelogBuilder {
addLinesPerHeader( value ) {
const key = `${value.match( new RegExp( "[ a-zA-Z]+:" ) )}`;
// eslint-disable-next-line no-control-regex
const lines = value.match( new RegExp( "(?<=\n)\\*([\n]|.)+?(?=\Z|\n\n|\n\\*|\n$)", "gm" ) );
const lines = value.match( new RegExp( "(?<=\n)\\*([\n]|.)+?(?=\n\n|\n\\*|\n$)", "gm" ) );
if ( this.ChangelogMap.has( key ) ) {
this.ChangelogMap.get( key ).append( lines );
} else {
Expand All @@ -215,7 +215,7 @@ class ChangelogBuilder {
substractLinesPerHeader( value ) {
const key = `${value.match( new RegExp( "[ a-zA-Z]+:" ) )}`;
// eslint-disable-next-line no-control-regex
const lines = value.match( new RegExp( "(?<=\n)\\*([\n]|.)+?(?=\Z|\n\n|\n\\*|\n$)", "gm" ) );
const lines = value.match( new RegExp( "(?<=\n)\\*([\n]|.)+?(?=\n\n|\n\\*|\n$)", "gm" ) );
if ( this.ChangelogMap.has( key ) ) {
this.ChangelogMap.get( key ).disengage( lines );
}
Expand Down
4 changes: 2 additions & 2 deletions 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": "2.1.1",
"version": "2.1.2",
"homepage": "https://github.com/Yoast/",
"repository": {
"type": "git",
Expand Down Expand Up @@ -57,4 +57,4 @@
"browserslist": [
"extends @yoast/browserslist-config"
]
}
}

0 comments on commit b1374a0

Please sign in to comment.