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 and LeonardoCardoso committed Sep 23, 2021
1 parent 53b1116 commit 8cc3827
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,10 @@
## [3.5.0](https://github.com/LeonardoCardoso/Swift-Link-Preview/releases/tag/3.5.0)

#### Changed
- Update README.md [#150](https://github.com/LeonardoCardoso/SwiftLinkPreview/issues/150)
- Updated README.md [#150](https://github.com/LeonardoCardoso/SwiftLinkPreview/issues/150)
- Changed by [benlmyers](https://github.com/benlmyers)
- Updated regex limit [#148](https://github.com/LeonardoCardoso/SwiftLinkPreview/issues/148)
- Changed by [kinhvodoi92](https://github.com/kinhvodoi92)


## [3.4.0](https://github.com/LeonardoCardoso/Swift-Link-Preview/releases/tag/3.4.0)
Expand Down
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 8cc3827

Please sign in to comment.