Last active
May 8, 2018 05:23
-
-
Save iwilsonq/d7b27aadda908c308813e0264ca49dbd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func hasLanguageDelimiter(line string) bool { | |
if !strings.Contains(line, "```") { | |
return false | |
} | |
for _, lang := range languages { | |
if strings.Contains(line, lang) { | |
return true | |
} | |
} | |
return false | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment