summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEduardo Pedroni <e.pedroni91@gmail.com>2017-02-23 10:17:17 +0100
committerEduardo Pedroni <e.pedroni91@gmail.com>2017-02-23 10:17:17 +0100
commit3078d9303c934db910dcdb8107d83a5e756d02d9 (patch)
treea71c2ef3c23ed89a9609f3bec5b62cfddf2d439d
parenta490027e0c4c8cf70774382b586e3e66d7e7b274 (diff)
parent05b77d5da1c12e6905bf4987e930208c3ff5455a (diff)
Merge branch 'master' of github.com:epedroni/flashcards
-rw-r--r--flashcard.lang3
-rwxr-xr-xflashcards2
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>
diff --git a/flashcards b/flashcards
index 0b57dbe..30b24ba 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():