6.0.0-alpha14
6/24/25

[#14681] preg_match expression error in QuickParser.php
Summary preg_match expression error in QuickParser.php
Queue Nag
Queue Version Git master
Type Bug
State Resolved
Priority 1. Low
Owners jan (at) horde (dot) org
Requester birnbacs (at) gmail (dot) com
Created 08/11/2017 (2874 days ago)
Due
Updated 10/20/2017 (2804 days ago)
Assigned
Resolved 08/14/2017 (2871 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch Yes

History
10/20/2017 08:34:02 PM Git Commit Comment #4 Reply to this comment
Changes have been made in Git (FRAMEWORK_5_2):

commit 3d5cb44aebb10c185c61ba33dd04191d50383d95
Author: Jan Schneider <jan@horde.org>
Date:   Mon, 14 Aug 2017 12:57:45 +0200

[jan] Fix parsing sub-tasks from the quick enter dialog (Bug #14681).

  M docs/CHANGES
  M lib/QuickParser.php
  M package.xml

https://github.com/horde/nag/commit/3d5cb44aebb10c185c61ba33dd04191d50383d95
08/14/2017 12:28:33 PM Git Commit Comment #3 Reply to this comment
Changes have been made in Git (master):

commit a76ccff3df573cb80cbfdbd9ce833b9d7cbb75cb
Author: Jan Schneider <jan@horde.org>
Date:   Mon Aug 14 12:57:45 2017 +0200

     [jan] Fix parsing sub-tasks from the quick enter dialog (Bug #14681).

  nag/lib/QuickParser.php | 2 +-
  nag/package.xml         | 1 +
  2 files changed, 2 insertions(+), 1 deletion(-)

http://github.com/horde/horde/commit/a76ccff3df573cb80cbfdbd9ce833b9d7cbb75cb
08/14/2017 10:58:06 AM Jan Schneider Assigned to Jan Schneider
State ⇒ Resolved
 
08/14/2017 10:58:03 AM Git Commit Comment #2 Reply to this comment
Changes have been made in Git (FRAMEWORK_5_2):

commit 07781212c95b21d673ffb114491897561b6f77b7
Author: Jan Schneider <jan@horde.org>
Date:   Mon Aug 14 12:57:45 2017 +0200

     [jan] Fix parsing sub-tasks from the quick enter dialog (Bug #14681).

  nag/docs/CHANGES        | 1 +
  nag/lib/QuickParser.php | 2 +-
  nag/package.xml         | 2 ++
  3 files changed, 4 insertions(+), 1 deletion(-)

http://github.com/horde/horde/commit/07781212c95b21d673ffb114491897561b6f77b7
08/11/2017 10:36:59 PM birnbacs (at) gmail (dot) com Comment #1
Priority ⇒ 1. Low
Patch ⇒ Yes
Milestone ⇒
Queue ⇒ Nag
Summary ⇒ preg_match expression error in QuickParser.php
Type ⇒ Bug
State ⇒ Unconfirmed
Reply to this comment
There is a weird regular expression in QuickParser.php that does not 
compile with the preg_match command used (line 23):

$indented = preg_match('/^([*-\s]+)(.*)$/', $line, $matches);

The character range from * to whitespace appears intentional and 
innovative but it does not compute. Maybe this line should read:

$indented = preg_match('/^(\s+)(.*)$/', $line, $matches);

Saved Queries