If you think a bug might affect users in the 57 release, please set the correct tracking and status flags for Release Management.

regex test, specific characters (ÁÉÍÓÚÝÆÖÞÐ) and case - The "Ásgeir bug"

RESOLVED INCOMPLETE

Status

()

Firefox
General
RESOLVED INCOMPLETE
8 years ago
7 years ago

People

(Reporter: Arnar Freyr Óskarsson, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Whiteboard: [CLOSEME 2011-1-30], URL)

(Reporter)

Description

8 years ago
User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.1.7) Gecko/20091221 Firefox/3.5.7 (.NET CLR 3.5.30729)
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.1.7) Gecko/20091221 Firefox/3.5.7 (.NET CLR 3.5.30729)

On the just enter "ásg" and it should filter the same as "ÁSG"

regex test returns false (but should return true)

There is a problem with specific characters (ÁÉÍÓÚÝÆÖÞÐ) and case(áeíóúýæöþð)
Only when matching low to high not high to low.
if it does not match the case it returns false even if there is a "i" flag

var reg = new RegExp('ás', 'i')
reg.test('Ásge')
 /ás/ig.test('Ásgeirs')
 /ás/gi.test('Ásgeirs')
 /bás/i.test('BÁSgeir')
 /ás/i.test('Ásgeir')
 /és/i.test('Ésgeir')


Just try:
javascript:alert(/á/i.test('ÁÉÍÓÚÝÆÖÞÐABCD'))
javascript:alert(/ð/i.test('ÁÉÍÓÚÝÆÖÞÐABCD'))
javascript:alert(/A/i.test('ÁÉÍÓÚÝÆÖÞÐABCD'))
javascript:alert(/D/i.test('ÁÉÍÓÚÝÆÖÞÐABCD'))
  
but:
javascript:alert(/^á/i.test('ÁÉÍÓÚÝÆÖÞÐABCD'))
Works!

Reproducible: Always

Steps to Reproduce:
javascript:alert(/á/i.test('ÁÉÍÓÚÝÆÖÞÐABCD'))
(Reporter)

Comment 1

8 years ago
The page http://www.skyrr.is/Allir-starfsmenn/ has a javascript filter
that uses the "i" flag so "ÁSG" should return the same as "ásg"

Use the input box "Leit:"

p.s. It's in Icelandic
(Reporter)

Comment 2

8 years ago
This is not a bug in 3.0.0 but is in 3.5.7
Reporter, are you still seeing this issue with Firefox 3.6.13 or later in safe mode? If not, please close. These links can help you in your testing.
http://support.mozilla.com/kb/Safe+Mode
http://support.mozilla.com/kb/Managing+profiles

You can also try to reproduce in Firefox 4 Beta 8 or later, there are many improvements in the new version, http://www.mozilla.com/en-US/firefox/all-beta.html
Whiteboard: [CLOSEME 2011-1-30]
No reply, INCOMPLETE. Please retest with Firefox 3.6.13 or later and a new profile (http://support.mozilla.com/kb/Managing+profiles). If you continue to see this issue with the newest firefox and a new profile, then please comment on this bug.
Status: UNCONFIRMED → RESOLVED
Last Resolved: 7 years ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.