Bug Tracker

Opened 16 years ago

Closed 15 years ago

#1075 closed bug (fixed)

MetaData plugin: Invalid quantifier error in Firefox 1.0 (with fix)

Reported by: bmatzner Owned by: joern
Priority: major Milestone:
Component: plugin Version: 1.1.2
Keywords: metadata, firefox 1.0 Cc:
Blocked by: Blocking:

Description (last modified by joern)

Unfortunately, the metadata plugin from SVN does not contain a version number or date, but I reproduced this in the current version as of March 27, 2007:

In line 95, if( !/{/.test(data) ) data = "{" + data + "}";

must be changed to

if ( data.indexOf( '{' )<0 ) data = "{" + data + "}";

so the plugin also works in Firefox 1.0 - I know this browser is not on the supported browser list, but this is an easy fix...

Change History (3)

comment:1 Changed 16 years ago by joern

Description: modified (diff)
Owner: changed from john to joern

comment:2 Changed 16 years ago by joern

It should be enough to escape the "illegal quantifier": if ( !/\{/.test(data) ) ...

comment:3 Changed 15 years ago by joern

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.