Skip to content

Commit

Permalink
Add gradle publishing extensions to allowed extensions for gist preview
Browse files Browse the repository at this point in the history
  • Loading branch information
lukebemish authored May 4, 2024
1 parent ab43304 commit 670306f
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ public class FilePreviewModule implements CamelotModule {
private static final Set<String> ACCEPTED_EXTENSIONS = Collections.unmodifiableSet(Sets.newHashSet(
"txt", "gradle", "log", "java", "clj", "go",
"kt", "groovy", "js", "json", "kts", "toml", "md", "cpp", "rs",
"properties", "lang", "diff", "patch", "cfg", "accesswidener"
"properties", "lang", "diff", "patch", "cfg", "accesswidener",
"pom", "xml", "module"
));
private static final UnicodeEmoji EMOJI = Emoji.fromUnicode("🗒️");
private static final Pattern CODEBLOCK_PATTERN = Pattern.compile("`{3}(?<lang>\\w*)\\n(?<content>[\\s\\S]*?)\\n`{3}", Pattern.MULTILINE);
Expand Down

0 comments on commit 670306f

Please sign in to comment.