diff options
-rw-r--r-- | flashcard.lang | 3 | ||||
-rwxr-xr-x | flashcards | 2 |
2 files changed, 2 insertions, 3 deletions
diff --git a/flashcard.lang b/flashcard.lang index dd113b4..267f5b2 100644 --- a/flashcard.lang +++ b/flashcard.lang @@ -1,8 +1,7 @@ <?xml version="1.0" encoding="UTF-8"?> <language id="flashcard" _name="Flashcard" version="2.0" _section="Markup"> <metadata> - <property name="mimetypes">text/plain</property> - <property name="globs">*.</property> + <property name="globs">*.fcard</property> </metadata> <styles> @@ -6,7 +6,7 @@ from pathlib import Path from random import shuffle cardRegex = "CARD: " -prefixLength = 6 +prefixLength = len(cardRegex) # Returns a list of Path objects, containing the path to each valid file provided def getFileList(): |