Quantcast
Channel: YouTrackReSharper (RSRP) - Bug and Issue Tracker
Viewing all articles
Browse latest Browse all 106942

RSRP-453768: Detect problem in Regex: Capture group numbers must be less than or equal to Int32.MaxValue.

$
0
0
Reporter Vladimir Reshetnikov (nikov) Vladimir Reshetnikov (nikov)
Created Feb 11, 2016 11:29:41 PM
Updated Apr 13, 2018 3:29:08 PM
Resolved Apr 13, 2018 3:29:08 PM
Subsystem RegExp Support (Regular Expressions)
Assignee Evgeniy Stepanov (Evgeniy_Stepanov)
Priority Normal
State Fixed
Type Bug
Fix version 2018.2
Affected versions 10.0.2
Fixed In Version ReSharper Undefined
VsVersion VS 2015 RTM
using System.Text.RegularExpressions;

class C
{
static void Main()
{
var r = new Regex(".{10000000000}"); // ArgumentException: parsing ".{10000000000}" - Capture group numbers must be less than or equal to Int32.MaxValue.
}
}

Viewing all articles
Browse latest Browse all 106942

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>