Skip to content

Commit

Permalink
..
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Apr 13, 2021
1 parent dd6a1bc commit d904b1a
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 7 deletions.
7 changes: 4 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -1171,10 +1171,10 @@ function toSlug(value) {
.replace(/[^\u0000-\u007F]/g, '')
// Replace dash and underscore with a space.
.replace(/[-_]/g, ' ')
// Replace multiple spaces
.replace(/\s+/g, '-')
// Trim.
.trim()
// Replace multiple spaces
.replace(/\s+/g, '-')
)
}

Expand Down Expand Up @@ -25840,13 +25840,14 @@ var __webpack_exports__ = {};


var fs = __nccwpck_require__(5747)
var path = __nccwpck_require__(5622)
var yaml = __nccwpck_require__(1917)
var beep = __nccwpck_require__(6278)
var custom = __nccwpck_require__(4758)
var renderers = __nccwpck_require__(4081)

beep({
tasks: yaml.load(String(fs.readFileSync('tasks.yml'))),
tasks: yaml.load(String(fs.readFileSync(__nccwpck_require__.ab + "tasks.yml"))),
plugins: [custom],
renderers
})
Expand Down
4 changes: 2 additions & 2 deletions lib/boop/util/label-matches.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ function toSlug(value) {
.replace(/[^\u0000-\u007F]/g, '')
// Replace dash and underscore with a space.
.replace(/[-_]/g, ' ')
// Replace multiple spaces
.replace(/\s+/g, '-')
// Trim.
.trim()
// Replace multiple spaces
.replace(/\s+/g, '-')
)
}
3 changes: 2 additions & 1 deletion main.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
'use strict'

var fs = require('fs')
var path = require('path')
var yaml = require('js-yaml')
var beep = require('./lib/beep')
var custom = require('./lib/custom')
var renderers = require('./lib/renderers')

beep({
tasks: yaml.load(String(fs.readFileSync('tasks.yml'))),
tasks: yaml.load(String(fs.readFileSync(path.join(__dirname, 'tasks.yml')))),
plugins: [custom],
renderers
})
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,10 @@
"unicorn/prefer-number-properties": "off",
"unicorn/prefer-set-has": "off",
"unicorn/prefer-type-error": "off"
}
},
"ignores": [
"index.js"
]
},
"remarkConfig": {
"plugins": [
Expand Down

0 comments on commit d904b1a

Please sign in to comment.