File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -12,10 +12,10 @@ internal class Detector
12
12
private readonly ParserSettings _settings ;
13
13
14
14
private static readonly Regex RootIdentifierDetectionRegex =
15
- new Regex ( @"(?<id>@?[\p{L}\p{Nl}_][\p{L}\p{Nl}\p{Nd}\p{Mn}\p{Mc}\p{Pc}\p{Cf}_]*)" , RegexOptions . Compiled ) ;
15
+ new Regex ( @"(?<=[^\w@]|^)(?< id>@?[\p{L}\p{Nl}_][\p{L}\p{Nl}\p{Nd}\p{Mn}\p{Mc}\p{Pc}\p{Cf}_]*)" , RegexOptions . Compiled ) ;
16
16
17
17
private static readonly Regex ChildIdentifierDetectionRegex = new Regex (
18
- @"(?<id>@?[\p{L}\p{Nl}_][\p{L}\p{Nl}\p{Nd}\p{Mn}\p{Mc}\p{Pc}\p{Cf}_]*(\.[\p{L}\p{Nl}_][\p{L}\p{Nl}\p{Nd}\p{Mn}\p{Mc}\p{Pc}\p{Cf}_]*)*)" ,
18
+ @"(?<=[^\w@]|^)(?< id>@?[\p{L}\p{Nl}_][\p{L}\p{Nl}\p{Nd}\p{Mn}\p{Mc}\p{Pc}\p{Cf}_]*(\.[\p{L}\p{Nl}_][\p{L}\p{Nl}\p{Nd}\p{Mn}\p{Mc}\p{Pc}\p{Cf}_]*)*)" ,
19
19
RegexOptions . Compiled ) ;
20
20
21
21
You can’t perform that action at this time.
0 commit comments