Regex.js 196 Bytes
Newer Older
1
export function _cloneRegex(r) {
Justin Woo's avatar
Justin Woo committed
2 3
  return new RegExp(r.source, r.flags);
}
4
export function _getRegexLastIndex(r) {
Justin Woo's avatar
Justin Woo committed
5 6
  return r.lastIndex;
}
7
export function _execRegex(r, s) {
Justin Woo's avatar
Justin Woo committed
8 9
  return r.exec(s);
}