Use ... instead of .concat()
This commit is contained in:
1 parent
89e5751b46
commit
e8a5d867cd
1 file changed
+1
-2
@@ -16,8 +16,7 @@ const DELIMITER_MAP = {
|
||||
|
||||
function parse(text) {
|
||||
const startDelimiterRegex = Object.keys(DELIMITER_MAP).map(escape).join("|");
|
||||
const endDelimiterRegex = Object.keys(DELIMITER_MAP)
|
||||
.concat(YAML_END_DELIMITER)
|
||||
const endDelimiterRegex = [...Object.keys(DELIMITER_MAP), YAML_END_DELIMITER]
|
||||
.map(escape)
|
||||
.join("|");
|
||||
|
||||
|
||||
Reference in new issue
Block a user