Skip to content

Commit ad709c7

Browse files
authored
chore(strip-hugo-ctx.sh): allow whitespace before __hugo_ctx (#9606)
1 parent cb80420 commit ad709c7

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)