empty fields are not populated using regex in massedit

Bug #840517 reported by drMerry
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
calibre
Fix Released
Undecided
Charles Haley

Bug Description

When I tried to populate my fields using regexp, I noticed empty fields are not populated

E.g.
Book A:
#contributing_people: "H. G. Wells"
Book B:
#contributing_people: ""

Regexp:
Find: .*
Replace: Herbert George Wells
Result:
Book A:
Herbert George Wells
Book B:

Same for ^.*$
When using ^$ book A and B are both not changed.

Related branches

Revision history for this message
Kovid Goyal (kovid) wrote : Re: calibre bug 840517

Changing the component for this bug.

 assignee cbhaley
 status triaged

Changed in calibre:
assignee: nobody → Charles Haley (cbhaley)
status: New → Triaged
Revision history for this message
Charles Haley (cbhaley) wrote :

I changed regexp replacements on is_multiple columns to use [''] for empty columns ([]). This permits .* to match. I hope it doesn't break other things. I don't think it does

Changed in calibre:
status: Triaged → Fix Committed
Revision history for this message
Kovid Goyal (kovid) wrote : Fixed in lp:calibre

Fixed in branch lp:calibre. The fix will be in the next release. calibre is usually released every Friday.

 status fixreleased

Changed in calibre:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.