Skip to content

Commit 5f1ef98

Browse files
authored
chore(strip-hugo-ctx.sh): allow whitespace before __hugo_ctx
- Contributes to #9449
1 parent cb80420 commit 5f1ef98

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/strip-hugo-ctx.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@ if [[ ! -d "$target_dir" ]]; then
1010
fi
1111

1212
find -L "$target_dir" -type f -name '*.md' -exec perl -i -ne '
13-
print unless /^\{\{__hugo_ctx pid=\d+\}\}\s*$/;
13+
print unless /^\s*\{\{__hugo_ctx pid=\d+\}\}\s*$/;
1414
' {} +

0 commit comments

Comments
 (0)