[Midnight Commander] #207: Minor regex fixes

Ticket System tickets at midnight-commander.org
Sat Jan 24 09:10:55 UTC 2009


#207: Minor regex fixes
---------------------------------------------------+------------------------
  Reporter:  Patrick Winnertz <winnie at debian.org>  |       Owner:  winnie                              
      Type:  defect                                |      Status:  accepted                            
  Priority:  major                                 |   Milestone:  4.6.2                               
 Component:  mc-core                               |     Version:  4.6.1                               
Resolution:                                        |    Keywords:  vote-slavazanko vote-slyfox approved
  Blocking:                                        |   Blockedby:                                      
---------------------------------------------------+------------------------
Changes (by slyfox):

  * keywords:  review vote-slavazanko => vote-slavazanko vote-slyfox
               approved


Comment:

 > 99c_fix-regex-newline-match.patch

 Changes regex subst behaviour for following example:
 regex: '''s,3$,TEST,'''
 file_to_edit:
 {{{
 1 2 3
 1 2 3
 1 2 3
 }}}

 When patch applied all the '''3''' are substituted, without the patch -
 only the last occurence. So patch is clearly a Good Thing :]

 > 99a_fix-regex-bol-match.patch

 Nothing looks broken, but I could not figure an example to test this
 change. Could you provide one?

 My vote is yours :]

-- 
Ticket URL: <www.midnight-commander.org/ticket/207#comment:5>
Midnight Commander <www.midnight-commander.org>
Midnight Development Center


More information about the mc-devel mailing list