diff options
author | Minteck <contact@minteck.org> | 2022-01-21 20:28:48 +0100 |
---|---|---|
committer | Minteck <contact@minteck.org> | 2022-01-21 20:28:48 +0100 |
commit | b2dd4c8a944a442ef6791d639d5fd1ec7f3d0638 (patch) | |
tree | 8ee30309b75952c7d1f84d70a3869d28ea2255c5 | |
parent | e86b53733f106dd829c19fdac68d43de1d3dc28a (diff) | |
download | cobalt-b2dd4c8a944a442ef6791d639d5fd1ec7f3d0638.tar.gz cobalt-b2dd4c8a944a442ef6791d639d5fd1ec7f3d0638.tar.bz2 cobalt-b2dd4c8a944a442ef6791d639d5fd1ec7f3d0638.zip |
Fix regex in publishtag.js
-rw-r--r-- | modules/publishtag.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/publishtag.js b/modules/publishtag.js index e4b0160..adee884 100644 --- a/modules/publishtag.js +++ b/modules/publishtag.js @@ -1,5 +1,5 @@ const fs = require('fs'); module.exports = (file) => { - return fs.readFileSync(file).toString().match(/---\n(.*)publish( *):( *)true\n(.*)---/gm) + return fs.readFileSync(file).toString().match(/---\n((.|\n)*)publish( *):( *)true\n(.*)---/gm) }
\ No newline at end of file |