File tree 2 files changed +2
-20
lines changed
2 files changed +2
-20
lines changed Original file line number Diff line number Diff line change @@ -77,16 +77,7 @@ impl Regex {
77
77
///
78
78
/// If an invalid expression is given, then an error is returned.
79
79
pub fn new ( re : & str ) -> Result < Regex , Error > {
80
- Regex :: with_size_limit ( 10 * ( 1 << 20 ) , re)
81
- }
82
-
83
- /// Compiles a regular expression with the given size limit.
84
- ///
85
- /// The size limit is applied to the size of the *compiled* data structure.
86
- /// If the data structure exceeds the size given, then an error is
87
- /// returned.
88
- pub fn with_size_limit ( size : usize , re : & str ) -> Result < Regex , Error > {
89
- RegexBuilder :: new ( re) . size_limit ( size) . compile ( )
80
+ RegexBuilder :: new ( re) . compile ( )
90
81
}
91
82
92
83
/// Returns true if and only if the regex matches the string given.
Original file line number Diff line number Diff line change @@ -151,16 +151,7 @@ impl Regex {
151
151
///
152
152
/// If an invalid expression is given, then an error is returned.
153
153
pub fn new ( re : & str ) -> Result < Regex , Error > {
154
- Regex :: with_size_limit ( 10 * ( 1 << 20 ) , re)
155
- }
156
-
157
- /// Compiles a regular expression with the given size limit.
158
- ///
159
- /// The size limit is applied to the size of the *compiled* data structure.
160
- /// If the data structure exceeds the size given, then an error is
161
- /// returned.
162
- pub fn with_size_limit ( size : usize , re : & str ) -> Result < Regex , Error > {
163
- RegexBuilder :: new ( re) . size_limit ( size) . compile ( )
154
+ RegexBuilder :: new ( re) . compile ( )
164
155
}
165
156
166
157
/// Returns true if and only if the regex matches the string given.
You can’t perform that action at this time.
0 commit comments