aboutsummaryrefslogtreecommitdiff
path: root/gulpfile.js
diff options
context:
space:
mode:
authorcodecalm <codecalm@gmail.com>2022-07-25 11:16:09 +0200
committercodecalm <codecalm@gmail.com>2022-07-25 11:16:09 +0200
commita479714d399acfce9587176654c80385b06abc80 (patch)
treeac55f81f58ace9a7d469e77aa1d014d4f1569f80 /gulpfile.js
parentupdate icons tags (diff)
downloadtabler-icons-a479714d399acfce9587176654c80385b06abc80.tar.xz
update icons tags
Diffstat (limited to 'gulpfile.js')
-rw-r--r--gulpfile.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/gulpfile.js b/gulpfile.js
index cd94823e..6acf6439 100644
--- a/gulpfile.js
+++ b/gulpfile.js
@@ -740,8 +740,7 @@ gulp.task('import-categories', function(cb) {
if(categoryOriginal) {
console.log('categoryOriginal', categoryOriginal[1])
-
- let data = fs.readFileSync(fileOriginal).toString()
+ let data = fs.readFileSync(file).toString()
data = data.replace(/(---[\s\S]+?---)/, function(m, headerContent) {
headerContent = headerContent.replace(/category: .*\n/, '')
@@ -750,7 +749,7 @@ gulp.task('import-categories', function(cb) {
return headerContent
})
- fs.writeFileSync(fileOriginal, data)
+ fs.writeFileSync(file, data)
}
}
})