r53371 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r53370‎ | r53371 | r53372 >
Date:18:18, 16 July 2009
Author:simetrical
Status:ok
Tags:
Comment:
Escape . in regex

This was previously done in r53143, and inadvertently undone in r53282.
Thanks to Splarka for pointing it out, although I doubt it does
anything.
Modified paths:
  • /trunk/phase3/skins/common/wikibits.js (modified) (history)

Diff [purge]

Index: trunk/phase3/skins/common/wikibits.js
@@ -20,7 +20,7 @@
2121 var is_opera = true;
2222 var is_opera_preseven = window.opera && !document.childNodes;
2323 var is_opera_seven = window.opera && document.childNodes;
24 - var is_opera_95 = /opera\/(9.[5-9]|[1-9][0-9])/.test( clientPC );
 24+ var is_opera_95 = /opera\/(9\.[5-9]|[1-9][0-9])/.test( clientPC );
2525 var opera6_bugs = is_opera_preseven;
2626 var opera7_bugs = is_opera_seven && !is_opera_95;
2727 var opera95_bugs = /opera\/(9\.5)/.test( clientPC );

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r53143Do not load old CSS fixes for new browsers...simetrical18:52, 12 July 2009
r53282here it is ... the upload-api, script-server, js2 (javascript phase2) branch ...dale23:52, 14 July 2009

Status & tagging log