witten
/
luminotes
Archived
1
0
Fork 0

Being a little more lenient about parsing of internal URLs.

This commit is contained in:
Dan Helfman 2009-02-13 15:50:39 -08:00
parent 6e693eaef3
commit 66525ffd34
1 changed files with 1 additions and 1 deletions

View File

@ -4,7 +4,7 @@ from Tags import Html, Head, Title, Style, Meta, Body, H1, Div, Span, Hr, A
class Html_file( Html ):
NOTE_LINK_PATTERN = re.compile( u'<a\s+href="[^"]*\/notebooks\/[^>]+[?&]note_id=([a-z0-9]*)"[^>]*>', re.IGNORECASE )
NOTE_LINK_PATTERN = re.compile( u'<a\s+href="[^"]*(?:\/notebooks\/)?[^>]+[?&]note_id=([a-z0-9]*)"[^>]*>', re.IGNORECASE )
IMAGE_PATTERN = re.compile( u'<img [^>]* ?/?>', re.IGNORECASE )
def __init__( self, notebook_name, notes ):