Skip to content

Commit 7e3cc5a

Browse files
authored
Restore and extend url linkifier (#2066)
1 parent 8314b03 commit 7e3cc5a

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

source/index.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,3 +109,11 @@ export const hasRichTextEditor = (): boolean =>
109109
hasComments() ||
110110
isNewIssue() ||
111111
isCompare();
112+
113+
export const hasCode = (): boolean => // Static code, not the editor
114+
hasComments() ||
115+
isRepoTree() || // Readme files
116+
isSingleFile() ||
117+
isGist() ||
118+
isCompare() ||
119+
isBlame();

0 commit comments

Comments
 (0)