Created
September 25, 2022 22:35
-
-
Save rahulbanerjee26/4cdec00504de536b3ffc10e01b68d473 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
snippets = re.findall(start_pat + "(.*?)" + end_pat, content, re.S) | |
result = [] | |
for item in snippets: | |
if item[0] != "bash": | |
result.append(getSnippetName(item[0], item[1])) | |
return result |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment