Not logged in

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Support lower-case IFIDs for twine, of course.
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:9a58584f25c04880012a78b221f741c9446c6981
User & Date: brandon 2018-10-13 20:38:44
Context
2018-10-13
20:49
Calculate a new hash IFID for twine games without an embedded IFID. check-in: 290d26e5c9 user: brandon tags: trunk
20:38
Support lower-case IFIDs for twine, of course. check-in: 9a58584f25 user: brandon tags: trunk
20:17
Add more Alan extensions check-in: 34561fe7fc user: brandon tags: trunk
Changes

Changes to treatyofbabel/formats/twine.py.

56
57
58
59
60
61
62
63
64
65
66


def get_story_file_cover(file_buffer):
    return None


def get_story_file_ifid(file_buffer):
    m = re.search(r'ifid="([A-Z0-9-]+)"', file_buffer)
    if m is None:
        return None
    return m.group(1)







|



56
57
58
59
60
61
62
63
64
65
66


def get_story_file_cover(file_buffer):
    return None


def get_story_file_ifid(file_buffer):
    m = re.search(r'ifid="([A-Za-z0-9-]+)"', file_buffer)
    if m is None:
        return None
    return m.group(1)