Remove 11-character requirement on folder names. Fixes #1.
This commit is contained in:
parent
ee3029486f
commit
bf2b3539ac
2
hooks.js
2
hooks.js
|
@ -21,7 +21,7 @@ const parseHooks = (root, hooks) =>
|
||||||
hooks
|
hooks
|
||||||
.map(x => ({
|
.map(x => ({
|
||||||
path: path.join(root, x),
|
path: path.join(root, x),
|
||||||
match: x.match(/(?<folder>.{11})-(?<time>.*)/),
|
match: x.match(/(?<folder>.*)-(?<time>.*)/),
|
||||||
}))
|
}))
|
||||||
.filter(x => x.match)
|
.filter(x => x.match)
|
||||||
.map(x => ({
|
.map(x => ({
|
||||||
|
|
Loading…
Reference in a new issue