summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--flashcard.lang2
-rwxr-xr-xflashcards2
2 files changed, 2 insertions, 2 deletions
diff --git a/flashcard.lang b/flashcard.lang
index dd113b4..93c794f 100644
--- a/flashcard.lang
+++ b/flashcard.lang
@@ -2,7 +2,7 @@
<language id="flashcard" _name="Flashcard" version="2.0" _section="Markup">
<metadata>
<property name="mimetypes">text/plain</property>
- <property name="globs">*.</property>
+ <property name="globs">*.flc</property>
</metadata>
<styles>
diff --git a/flashcards b/flashcards
index 1cbcfc6..dae46f1 100755
--- a/flashcards
+++ b/flashcards
@@ -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():