Modify

Opened 13 years ago

Closed 13 years ago

#8399 closed defect (fixed)

It doesn't work in 0.12.1

Reported by: zwei22@… Owned by: Ryan J Ollos
Priority: high Component: DuplicateTicketSearchPlugin
Severity: critical Keywords: regex
Cc: Trac Release: 0.12

Description (last modified by Ryan J Ollos)

I have installed trac(0.12.1) and I want to that the plugin work in my trac well. However, It doesn't work, so I see its source, tracDupeSearch.js. In the source, I changed code about regex expression and it is working well. It's below

- var summaryRegex = /#(\d+)<\/span>:\s*([a-z0-9\-\_\ ]+):\s*(.*)\s*\(([a-z0-9\-\_\ ]+)(?:\: ([a-z0-9\-\_\ ]+))?\)$/i;
+ var summaryRegex = /#(\d+)<\/span>:\s*(.*):\s*(.*)\s*\((.*)(?:\: (.*))?\)$/i;

Attachments (0)

Change History (6)

comment:1 Changed 13 years ago by Ryan J Ollos

Description: modified (diff)

What language do you use on your Trac installation?

comment:2 in reply to:  1 Changed 13 years ago by zwei22@…

I use korean in my trac.

Replying to rjollos:

What language do you use on your Trac installation?

comment:3 Changed 13 years ago by Ryan J Ollos

Owner: changed from gregmac to Ryan J Ollos
Priority: normalhigh
Status: newassigned

This might resolve the issue in #7382 as well. I'll apply the patch shortly.

comment:4 Changed 13 years ago by Ryan J Ollos

I don't understand the regex, but it seems to work, so I'm going to go ahead and apply the patch.

comment:5 Changed 13 years ago by Ryan J Ollos

Before and after applying the patch, I created a ticket with summary 한국어/조선말 and I got a subsequent match in both cases. So, I'm not exactly sure why it wasn't working for you and the reporter in #7382, but was working fine for me.

comment:6 Changed 13 years ago by Ryan J Ollos

Resolution: fixed
Status: assignedclosed

(In [9784]) Modified regex to support unicode characters in match. Fixes #8399.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Ryan J Ollos.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.