Bug 172702 - JavaScript regex /\D/ problem
Summary: JavaScript regex /\D/ problem
Status: RESOLVED FIXED
Alias: None
Product: kde-windows
Classification: Unmaintained
Component: general (show other bugs)
Version: 4.0.0
Platform: Microsoft Windows Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: Christian Ehrlicher
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-13 09:48 UTC by lunter
Modified: 2008-10-15 21:59 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
source (193 bytes, text/html)
2008-10-13 09:49 UTC, lunter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description lunter 2008-10-13 09:48:26 UTC
Version:           4.1.2 (using KDE 4.1.2)
OS:                MS Windows
Installed from:    MS Windows

<script>
 alert('1/2.3,4'.replace(/\D/g,'-'))
</script>

IE, FF, Opera, Safari, Chrome alert: 1-2-3-4
KDE 4.1.2 alerts: 1/2.3,4
regex solution: \D = [^0-9]
Comment 1 lunter 2008-10-13 09:49:12 UTC
Created attachment 27845 [details]
source
Comment 2 Maksim Orlovich 2008-10-13 16:41:52 UTC
Works fine for me. Perhaps an issue of how its built on Win32?

Win32 folks: what PCRE are you using?
Comment 3 Christian Ehrlicher 2008-10-13 17:42:02 UTC
7.7 or 7.8 but I'll take a look on it.
Comment 4 lunter 2008-10-13 22:01:56 UTC
I installed only kdebase-apps-msvc 4.1.2 and depended packages: kdebase-runtime-msvc 4.1.2, kdelibs-msvc 4.1.2, kdepimlins-msvc 4.1.2.

I use Windows XP SP3.

How to check version of PCRE I am using?

[^0-9] works perfectly
\D doesn't work
Comment 5 lunter 2008-10-13 22:06:00 UTC
CRC32 checksums of pcre dlls:

pcre.dll D8C64F11
pcrecpp.dll AFC0E97F
pcregrep.exe 20C43625
pcreposix.dll 491CA97D
pcretest.exe 3EF22C2E
Comment 6 Christian Ehrlicher 2008-10-15 21:52:50 UTC
There was a problem in the pcre libs we provided. New versions can be downloaded from here: http://winkde.org/pub/kde/ports/win32/repository/win32libs/
The next kde release will contain them
Comment 7 Maksim Orlovich 2008-10-15 21:59:46 UTC
Thank you for sorting this out.