René's URL Explorer Experiment


Title: Lookbehind in number regexp crashes Safari · Issue #106 · scriptcoded/sql-highlight · GitHub

Open Graph Title: Lookbehind in number regexp crashes Safari · Issue #106 · scriptcoded/sql-highlight

X Title: Lookbehind in number regexp crashes Safari · Issue #106 · scriptcoded/sql-highlight

Description: Describe the bug The regular expression at https://github.com/scriptcoded/sql-highlight/blob/master/lib/index.js#L42 uses lookbehind, which is currently not supported by latest Safari (https://caniuse.com/js-regexp-lookbehind) and some o...

Open Graph Description: Describe the bug The regular expression at https://github.com/scriptcoded/sql-highlight/blob/master/lib/index.js#L42 uses lookbehind, which is currently not supported by latest Safari (https://cani...

X Description: Describe the bug The regular expression at https://github.com/scriptcoded/sql-highlight/blob/master/lib/index.js#L42 uses lookbehind, which is currently not supported by latest Safari (https://cani...

Opengraph URL: https://github.com/scriptcoded/sql-highlight/issues/106

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Lookbehind in number regexp crashes Safari","articleBody":"**Describe the bug**\r\nThe regular expression at https://github.com/scriptcoded/sql-highlight/blob/master/lib/index.js#L42 uses lookbehind, which is currently not supported by latest Safari (https://caniuse.com/js-regexp-lookbehind) and some other browsers; caniuse says that its global support is 76.9%. Safari considers that the code has a syntax error, crashing the page.\r\n\r\n**To Reproduce**\r\n1. Import sql-highlight `getSegments` in your browser bundle.\r\n2. Load your page on Safari.\r\n3. Page crashes with \"syntax error: invalid regular expression: invalid group specifier name\".\r\n\r\n(Or just type `/((?\u003c![a-zA-z])\\d+(?:\\.\\d+)?)/g` on Safari console.)\r\n\r\n**Expected behavior**\r\nCode should compile.\r\n\r\n**sql-highlight (please complete the following information):**\r\nv4.3.1 (latest)\r\n\r\n**Node.js (please complete the following information):**\r\nNot applicable.\r\n\r\n**Browser (please complete the following information):**\r\nMacOS Safari 16.3 (latest)\r\n","author":{"url":"https://github.com/tmadeira","@type":"Person","name":"tmadeira"},"datePublished":"2023-03-14T17:35:33.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/106/sql-highlight/issues/106"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:fa644f4f-436b-f46f-7190-d65a104e4ad8
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id928A:32780D:FC5401:1461A77:69929AD7
html-safe-noncecf3eb5f69506761b79932f7bd27323793f18d120edf44d54861566d0a02ee171
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MjhBOjMyNzgwRDpGQzU0MDE6MTQ2MUE3Nzo2OTkyOUFENyIsInZpc2l0b3JfaWQiOiI1MjE1MDUwNjcwOTgyNDcwMzU5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac0a7107293a49854f2bede9dd8ee66e0248a894e71856ea831815084e56e526ad
hovercard-subject-tagissue:1623990741
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/scriptcoded/sql-highlight/106/issue_layout
twitter:imagehttps://opengraph.githubassets.com/b00ca1b502ff54677893ab16dcb5c90f4d55c590f3d1fff14b8bce79d0be2cf0/scriptcoded/sql-highlight/issues/106
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/b00ca1b502ff54677893ab16dcb5c90f4d55c590f3d1fff14b8bce79d0be2cf0/scriptcoded/sql-highlight/issues/106
og:image:altDescribe the bug The regular expression at https://github.com/scriptcoded/sql-highlight/blob/master/lib/index.js#L42 uses lookbehind, which is currently not supported by latest Safari (https://cani...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernametmadeira
hostnamegithub.com
expected-hostnamegithub.com
None42c603b9d642c4a9065a51770f75e5e27132fef0e858607f5c9cb7e422831a7b
turbo-cache-controlno-preview
go-importgithub.com/scriptcoded/sql-highlight git https://github.com/scriptcoded/sql-highlight.git
octolytics-dimension-user_id6452991
octolytics-dimension-user_loginscriptcoded
octolytics-dimension-repository_id147309066
octolytics-dimension-repository_nwoscriptcoded/sql-highlight
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id147309066
octolytics-dimension-repository_network_root_nwoscriptcoded/sql-highlight
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release848bc6032dcc93a9a7301dcc3f379a72ba13b96e
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/scriptcoded/sql-highlight/issues/106#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fscriptcoded%2Fsql-highlight%2Fissues%2F106
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://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fscriptcoded%2Fsql-highlight%2Fissues%2F106
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=scriptcoded%2Fsql-highlight
Reloadhttps://github.com/scriptcoded/sql-highlight/issues/106
Reloadhttps://github.com/scriptcoded/sql-highlight/issues/106
Reloadhttps://github.com/scriptcoded/sql-highlight/issues/106
scriptcoded https://github.com/scriptcoded
sql-highlighthttps://github.com/scriptcoded/sql-highlight
Please reload this pagehttps://github.com/scriptcoded/sql-highlight/issues/106
Notifications https://github.com/login?return_to=%2Fscriptcoded%2Fsql-highlight
Fork 14 https://github.com/login?return_to=%2Fscriptcoded%2Fsql-highlight
Star 43 https://github.com/login?return_to=%2Fscriptcoded%2Fsql-highlight
Code https://github.com/scriptcoded/sql-highlight
Issues 0 https://github.com/scriptcoded/sql-highlight/issues
Pull requests 0 https://github.com/scriptcoded/sql-highlight/pulls
Actions https://github.com/scriptcoded/sql-highlight/actions
Security 0 https://github.com/scriptcoded/sql-highlight/security
Insights https://github.com/scriptcoded/sql-highlight/pulse
Code https://github.com/scriptcoded/sql-highlight
Issues https://github.com/scriptcoded/sql-highlight/issues
Pull requests https://github.com/scriptcoded/sql-highlight/pulls
Actions https://github.com/scriptcoded/sql-highlight/actions
Security https://github.com/scriptcoded/sql-highlight/security
Insights https://github.com/scriptcoded/sql-highlight/pulse
New issuehttps://github.com/login?return_to=https://github.com/scriptcoded/sql-highlight/issues/106
New issuehttps://github.com/login?return_to=https://github.com/scriptcoded/sql-highlight/issues/106
#107https://github.com/scriptcoded/sql-highlight/pull/107
Lookbehind in number regexp crashes Safarihttps://github.com/scriptcoded/sql-highlight/issues/106#top
#107https://github.com/scriptcoded/sql-highlight/pull/107
https://github.com/tmadeira
https://github.com/tmadeira
tmadeirahttps://github.com/tmadeira
on Mar 14, 2023https://github.com/scriptcoded/sql-highlight/issues/106#issue-1623990741
https://github.com/scriptcoded/sql-highlight/blob/master/lib/index.js#L42https://github.com/scriptcoded/sql-highlight/blob/master/lib/index.js#L42
https://caniuse.com/js-regexp-lookbehindhttps://caniuse.com/js-regexp-lookbehind
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.