Skip to content

Commit

Permalink
[Php80] Support windows new line line DoctrineAnnotationDecorator::LO…
Browse files Browse the repository at this point in the history
…NG_ANNOTATION_REGEX (#5610)
  • Loading branch information
samsonasik committed Feb 12, 2024
1 parent 6dd91df commit 48e8cfa
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -33,10 +33,10 @@
private const ALLOWED_SHORT_ANNOTATIONS = ['Target'];

/**
* @see https://regex101.com/r/bGp2V0/1
* @see https://regex101.com/r/bGp2V0/2
* @var string
*/
private const LONG_ANNOTATION_REGEX = '#@\\\\(?<class_name>.*?)(?<annotation_content>\(.*?\)|,|\n|$)#';
private const LONG_ANNOTATION_REGEX = '#@\\\\(?<class_name>.*?)(?<annotation_content>\(.*?\)|,|\r?\n|$)#';

/**
* @see https://regex101.com/r/xWaLOz/1
Expand Down

0 comments on commit 48e8cfa

Please sign in to comment.