René's URL Explorer Experiment


Title: Fix string.find and string.match from unexpected explosions by jordan4ibanez · Pull Request #86 · TypeScriptToLua/lua-types · GitHub

Open Graph Title: Fix string.find and string.match from unexpected explosions by jordan4ibanez · Pull Request #86 · TypeScriptToLua/lua-types

X Title: Fix string.find and string.match from unexpected explosions by jordan4ibanez · Pull Request #86 · TypeScriptToLua/lua-types

Description: I was reading the documentation for string.find and I noticed that in it's own documentation it reads: /** * Looks for the first match of pattern (see §6.4.1) in the string s. If it * finds a match, then find returns the indices of s where this occurrence * starts and ends; otherwise, it returns nil. * / I see the definition defined as: function find( s: string, pattern: string, init?: number, plain?: boolean ): LuaMultiReturn<[number, number, ...string[]] | []> ; Perhaps the easiest solution for this would be to simply add optional return parameters as follows: function find( s: string, pattern: string, init?: number, plain?: boolean ): LuaMultiReturn<[number?, number?, ...string[]] | []> ; So this way, at least you know it might explode instead of blindly walking into an explosion. Also: I noticed that string.match could also blow up so I threw that in there.

Open Graph Description: I was reading the documentation for string.find and I noticed that in it's own documentation it reads: /** * Looks for the first match of pattern (see §6.4.1) in the string s. If it * finds...

X Description: I was reading the documentation for string.find and I noticed that in it&#39;s own documentation it reads: /** * Looks for the first match of pattern (see §6.4.1) in the string s. If it * f...

Opengraph URL: https://github.com/TypeScriptToLua/lua-types/pull/86

X: @github

direct link

Domain: patch-diff.githubusercontent.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:96cc4b17-bd75-7c12-3b50-48033f047e81
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id96CE:94987:120FB7E:19705DB:697234F8
html-safe-nonceeaaaa73c2b710371d569c040ee6e8c463454da29cab7f71359c63ae28ed65db4
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NkNFOjk0OTg3OjEyMEZCN0U6MTk3MDVEQjo2OTcyMzRGOCIsInZpc2l0b3JfaWQiOiI0Mzg2MDkzODEyMTYxODUyNjY0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac47c53f447b085f4e05686801fa323add96cafcb7a798f368d9f9d2729231cf60
hovercard-subject-tagpull_request:2603707152
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/TypeScriptToLua/lua-types/pull/86/files
twitter:imagehttps://avatars.githubusercontent.com/u/1088750?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/1088750?s=400&v=4
og:image:altI was reading the documentation for string.find and I noticed that in it's own documentation it reads: /** * Looks for the first match of pattern (see §6.4.1) in the string s. If it * finds...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None2c16db4e575031f6e3be03e0437c1ab663e0b4643ba5cbbfba48c1e4fc056a11
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/TypeScriptToLua/lua-types git https://github.com/TypeScriptToLua/lua-types.git
octolytics-dimension-user_id44121206
octolytics-dimension-user_loginTypeScriptToLua
octolytics-dimension-repository_id116213653
octolytics-dimension-repository_nwoTypeScriptToLua/lua-types
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id116213653
octolytics-dimension-repository_network_root_nwoTypeScriptToLua/lua-types
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasea12ab519e1537fa080535ea933f81d4fcef34da0
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/TypeScriptToLua/lua-types/pull/86/files#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2FTypeScriptToLua%2Flua-types%2Fpull%2F86%2Ffiles
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2FTypeScriptToLua%2Flua-types%2Fpull%2F86%2Ffiles
Sign up https://patch-diff.githubusercontent.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=TypeScriptToLua%2Flua-types
Reloadhttps://patch-diff.githubusercontent.com/TypeScriptToLua/lua-types/pull/86/files
Reloadhttps://patch-diff.githubusercontent.com/TypeScriptToLua/lua-types/pull/86/files
Reloadhttps://patch-diff.githubusercontent.com/TypeScriptToLua/lua-types/pull/86/files
TypeScriptToLua https://patch-diff.githubusercontent.com/TypeScriptToLua
lua-typeshttps://patch-diff.githubusercontent.com/TypeScriptToLua/lua-types
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2FTypeScriptToLua%2Flua-types
Fork 15 https://patch-diff.githubusercontent.com/login?return_to=%2FTypeScriptToLua%2Flua-types
Star 82 https://patch-diff.githubusercontent.com/login?return_to=%2FTypeScriptToLua%2Flua-types
Code https://patch-diff.githubusercontent.com/TypeScriptToLua/lua-types
Issues 3 https://patch-diff.githubusercontent.com/TypeScriptToLua/lua-types/issues
Pull requests 4 https://patch-diff.githubusercontent.com/TypeScriptToLua/lua-types/pulls
Actions https://patch-diff.githubusercontent.com/TypeScriptToLua/lua-types/actions
Projects 0 https://patch-diff.githubusercontent.com/TypeScriptToLua/lua-types/projects
Security Uh oh! There was an error while loading. Please reload this page. https://patch-diff.githubusercontent.com/TypeScriptToLua/lua-types/security
Please reload this pagehttps://patch-diff.githubusercontent.com/TypeScriptToLua/lua-types/pull/86/files
Insights https://patch-diff.githubusercontent.com/TypeScriptToLua/lua-types/pulse
Code https://patch-diff.githubusercontent.com/TypeScriptToLua/lua-types
Issues https://patch-diff.githubusercontent.com/TypeScriptToLua/lua-types/issues
Pull requests https://patch-diff.githubusercontent.com/TypeScriptToLua/lua-types/pulls
Actions https://patch-diff.githubusercontent.com/TypeScriptToLua/lua-types/actions
Projects https://patch-diff.githubusercontent.com/TypeScriptToLua/lua-types/projects
Security https://patch-diff.githubusercontent.com/TypeScriptToLua/lua-types/security
Insights https://patch-diff.githubusercontent.com/TypeScriptToLua/lua-types/pulse
Sign up for GitHub https://patch-diff.githubusercontent.com/signup?return_to=%2FTypeScriptToLua%2Flua-types%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://patch-diff.githubusercontent.com/login?return_to=%2FTypeScriptToLua%2Flua-types%2Fissues%2Fnew%2Fchoose
jordan4ibanezhttps://patch-diff.githubusercontent.com/jordan4ibanez
TypeScriptToLua:masterhttps://patch-diff.githubusercontent.com/TypeScriptToLua/lua-types/tree/master
jordan4ibanez:stringFindPatchjshttps://patch-diff.githubusercontent.com/jordan4ibanez/lua-types/tree/stringFindPatchjs
Conversation 0 https://patch-diff.githubusercontent.com/TypeScriptToLua/lua-types/pull/86
Commits 2 https://patch-diff.githubusercontent.com/TypeScriptToLua/lua-types/pull/86/commits
Checks 0 https://patch-diff.githubusercontent.com/TypeScriptToLua/lua-types/pull/86/checks
Files changed https://patch-diff.githubusercontent.com/TypeScriptToLua/lua-types/pull/86/files
Please reload this pagehttps://patch-diff.githubusercontent.com/TypeScriptToLua/lua-types/pull/86/files
Fix string.find and string.match from unexpected explosions https://patch-diff.githubusercontent.com/TypeScriptToLua/lua-types/pull/86/files#top
Show all changes 2 commits https://patch-diff.githubusercontent.com/TypeScriptToLua/lua-types/pull/86/files
2a09bf3 Fix string.find jordan4ibanez Jun 19, 2025 https://patch-diff.githubusercontent.com/TypeScriptToLua/lua-types/pull/86/commits/2a09bf3b27ed208e2e2231ad83d63a4529c50571
44b2767 Fix string.match jordan4ibanez Jun 19, 2025 https://patch-diff.githubusercontent.com/TypeScriptToLua/lua-types/pull/86/commits/44b27674010143b18ddb4ada68764f3119ab341d
Clear filters https://patch-diff.githubusercontent.com/TypeScriptToLua/lua-types/pull/86/files
Please reload this pagehttps://patch-diff.githubusercontent.com/TypeScriptToLua/lua-types/pull/86/files
Please reload this pagehttps://patch-diff.githubusercontent.com/TypeScriptToLua/lua-types/pull/86/files
string.d.ts https://patch-diff.githubusercontent.com/TypeScriptToLua/lua-types/pull/86/files#diff-ebbdff9fcf33868f5634682feb142801b15727b5a60332fd55117eed0a4fdc10
string.d.ts https://patch-diff.githubusercontent.com/TypeScriptToLua/lua-types/pull/86/files#diff-58b08e8b667a42a893566ab4c8fd717403ef1c1e5e360667a2820e74ac051638
core/5.0/string.d.tshttps://patch-diff.githubusercontent.com/TypeScriptToLua/lua-types/pull/86/files#diff-ebbdff9fcf33868f5634682feb142801b15727b5a60332fd55117eed0a4fdc10
View file https://patch-diff.githubusercontent.com/TypeScriptToLua/lua-types/blob/44b27674010143b18ddb4ada68764f3119ab341d/core/5.0/string.d.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://patch-diff.githubusercontent.com/TypeScriptToLua/lua-types/pull/86/{{ revealButtonHref }}
https://patch-diff.githubusercontent.com/TypeScriptToLua/lua-types/pull/86/files#diff-ebbdff9fcf33868f5634682feb142801b15727b5a60332fd55117eed0a4fdc10
https://patch-diff.githubusercontent.com/TypeScriptToLua/lua-types/pull/86/files#diff-ebbdff9fcf33868f5634682feb142801b15727b5a60332fd55117eed0a4fdc10
core/string.d.tshttps://patch-diff.githubusercontent.com/TypeScriptToLua/lua-types/pull/86/files#diff-58b08e8b667a42a893566ab4c8fd717403ef1c1e5e360667a2820e74ac051638
View file https://patch-diff.githubusercontent.com/TypeScriptToLua/lua-types/blob/44b27674010143b18ddb4ada68764f3119ab341d/core/string.d.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://patch-diff.githubusercontent.com/TypeScriptToLua/lua-types/pull/86/{{ revealButtonHref }}
https://patch-diff.githubusercontent.com/TypeScriptToLua/lua-types/pull/86/files#diff-58b08e8b667a42a893566ab4c8fd717403ef1c1e5e360667a2820e74ac051638
https://patch-diff.githubusercontent.com/TypeScriptToLua/lua-types/pull/86/files#diff-58b08e8b667a42a893566ab4c8fd717403ef1c1e5e360667a2820e74ac051638
https://patch-diff.githubusercontent.com/TypeScriptToLua/lua-types/pull/86/files#diff-58b08e8b667a42a893566ab4c8fd717403ef1c1e5e360667a2820e74ac051638
https://patch-diff.githubusercontent.com/TypeScriptToLua/lua-types/pull/86/files#diff-58b08e8b667a42a893566ab4c8fd717403ef1c1e5e360667a2820e74ac051638
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.