MockRe2
Script
v0
Fork
1
2
3
4
5
6
7
8
9
10
11
export
class
MockRe2
extends
RegExp
{
split
(
str
:
string
)
{
return
str
.
split
(
this
)
;
}
replace
(
str
,
replaceValue
:
string
)
{
return
str
.
replace
(
this
,
replaceValue
)
;
}
match
(
str
:
string
)
{
return
this
.
exec
(
str
)
;
}
}