Bug Tracker

Ticket #1075 (closed bug: fixed)

Opened 8 years ago

Last modified 7 years ago

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:
Blocking: Blocked by:

Description (last modified by joern) (diff)

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

comment:1 Changed 8 years ago by joern

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

comment:2 Changed 8 years ago by joern

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

comment:3 Changed 7 years ago by joern

  • Status changed from new to closed
  • Resolution set to fixed
Note: See TracTickets for help on using tickets.