Skip to content

Commit

Permalink
Merge pull request #1164 from Accenture/develop
Browse files Browse the repository at this point in the history
Release 6.0.1
  • Loading branch information
JoernBerkefeld authored Jan 10, 2024
2 parents c25af29 + 98807df commit 50a86b5
Show file tree
Hide file tree
Showing 18 changed files with 1,139 additions and 698 deletions.
1 change: 1 addition & 0 deletions .github/ISSUE_TEMPLATE/bug.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ body:
label: Version
description: What version of our software are you running? (mcdev --version)
options:
- 6.0.1
- 6.0.0
- 5.3.0
- 5.2.0
Expand Down
18 changes: 9 additions & 9 deletions lib/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -617,13 +617,13 @@ function csvToArray(csv) {
return !csv
? null
: csv.includes(',')
? csv
.split(',')
.map((item) =>
// allow whitespace in comma-separated lists
item.trim()
)
// make sure trailing commas are ignored
.filter(Boolean)
: [csv.trim()].filter(Boolean);
? csv
.split(',')
.map((item) =>
// allow whitespace in comma-separated lists
item.trim()
)
// make sure trailing commas are ignored
.filter(Boolean)
: [csv.trim()].filter(Boolean);
}
16 changes: 8 additions & 8 deletions lib/metadataTypes/Automation.js
Original file line number Diff line number Diff line change
Expand Up @@ -945,8 +945,8 @@ class Automation extends MetadataType {
item.type = scheduleHelper
? 'scheduled'
: item.fileTrigger
? 'triggered'
: undefined;
? 'triggered'
: undefined;

// el.schedule.timezoneName
if (item.type === 'scheduled') {
Expand Down Expand Up @@ -1203,10 +1203,10 @@ class Automation extends MetadataType {
const patternType = recurHelper['BYMONTH']
? 'ByMonth'
: recurHelper['BYWEEK']
? 'ByWeek'
: recurHelper['BYDAY']
? 'ByDay'
: 'Interval';
? 'ByWeek'
: recurHelper['BYDAY']
? 'ByDay'
: 'Interval';
schedule.Recurrence[keyStem + 'lyRecurrencePatternType'] = patternType;
schedule.Recurrence['@_xsi:type'] = keyStem + 'lyRecurrence';
schedule.RecurrenceType = keyStem + 'ly';
Expand Down Expand Up @@ -1387,8 +1387,8 @@ class Automation extends MetadataType {
ical.COUNT
? ` for ${ical.COUNT} times`
: ical.UNTIL
? ' until end date'
: ''
? ' until end date'
: ''
}`;
output += '\n';
} else if (json.schedule) {
Expand Down
8 changes: 4 additions & 4 deletions lib/util/init.npm.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,10 @@ const Init = {
versionsDefault[name] = Object.keys(Util.packageJsonMcdev.dependencies).includes(name)
? Util.packageJsonMcdev.dependencies[name]
: // then check mcdev.devDependencies
Object.keys(Util.packageJsonMcdev.devDependencies).includes(name)
? Util.packageJsonMcdev.devDependencies[name]
: // fallback to using latest version if not found
'latest';
Object.keys(Util.packageJsonMcdev.devDependencies).includes(name)
? Util.packageJsonMcdev.devDependencies[name]
: // fallback to using latest version if not found
'latest';
}

const versionsProject = {};
Expand Down
4 changes: 2 additions & 2 deletions lib/util/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -805,9 +805,9 @@ export const Util = {
// \s* whitespace characters, zero or more times
// [^>]*? any character that is not a >, zero or more times, un-greedily
// (.*) capture any character, zero or more times
// /ms multiline and dotall flags
// /s dotall flag
// ideally the code looks like <script runat="server">...</script>
const scriptRegex = /^<\s*script [^>]*?>(.*)<\/\s*script\s*>$/ms;
const scriptRegex = /^<\s*script [^>]*?>(.*)<\/\s*script\s*>$/s;
code = code.trim();
const regexMatches = scriptRegex.exec(code);
if (regexMatches?.length > 1) {
Expand Down
Loading

0 comments on commit 50a86b5

Please sign in to comment.