Skip to content
This repository has been archived by the owner on Jan 18, 2025. It is now read-only.

Commit

Permalink
Merge pull request #1 from kinhvodoi92/kinhvodoi92-fixRegexLimit
Browse files Browse the repository at this point in the history
update Regex.swift. Upgrade regex limit length
  • Loading branch information
kinhvodoi92 authored Jul 31, 2021
2 parents 3eb30b1 + 7812c3b commit b8a127e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/Regex.swift
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ class Regex {

var matches: [NSTextCheckingResult] = []

let limit = 300000
let limit = 1000000

if string.count > limit {
string.split(by: limit).forEach {
Expand Down

0 comments on commit b8a127e

Please sign in to comment.