Title: add functions for retrieving a Regex's source and flags · Issue #5 · purescript/purescript-strings · GitHub
Open Graph Title: add functions for retrieving a Regex's source and flags · Issue #5 · purescript/purescript-strings
X Title: add functions for retrieving a Regex's source and flags · Issue #5 · purescript/purescript-strings
Description: Should the flags be exposed as a record or as some canonicalised string? Either way, should there be a function for converting between the two formats? edit: JS RegExp flags can be retrieved as a string like this: function flags(re) { va...
Open Graph Description: Should the flags be exposed as a record or as some canonicalised string? Either way, should there be a function for converting between the two formats? edit: JS RegExp flags can be retrieved as a s...
X Description: Should the flags be exposed as a record or as some canonicalised string? Either way, should there be a function for converting between the two formats? edit: JS RegExp flags can be retrieved as a s...
Opengraph URL: https://github.com/purescript/purescript-strings/issues/5
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"add functions for retrieving a Regex's source and flags","articleBody":"Should the flags be exposed as a record or as some canonicalised string? Either way, should there be a function for converting between the two formats?\n\n**edit:** JS RegExp flags can be retrieved as a string like this:\n\n``` js\nfunction flags(re) {\n var s = '' + re;\n return s.slice(s.lastIndexOf('/') + 1);\n}\n```\n\nor as a record like this:\n\n``` js\nfunction flags(re) {\n return {\n multiline: re.multiline,\n ignoreCase: re.ignoreCase,\n global: re.global,\n sticky: !!re.sticky,\n unicode: !!re.unicode\n };\n}\n```\n","author":{"url":"https://github.com/michaelficarra","@type":"Person","name":"michaelficarra"},"datePublished":"2014-07-05T02:03:20Z","url":"https://github.com/purescript/purescript-strings/issues/5"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:917eb099-093e-596b-cd88-49b888152112 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D14C:291B58:90709B:B62A22:6B012470 |
| html-safe-nonce | 7c3377ef7c83998e9ddaa0904375bea924b6ad53ad8c478512c09404ad030bcd |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMTRDOjI5MUI1ODo5MDcwOUI6QjYyQTIyOjZCMDEyNDcwIiwidmlzaXRvcl9pZCI6Ijg5ODQwOTM1MzUwNzQ1OTE4NTYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | e7e8b9701ef0083a677f304b29dc174f9eeb23e58ab2c44377781544f9e2d289 |
| hovercard-subject-tag | issue:37190898 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/purescript/purescript-strings/5/issue_layout |
| twitter:image | https://opengraph.githubassets.com/1a999239a3799dfdb5b6214e6141020cb9a4dca43fb2549dba8703b16e5642df/purescript/purescript-strings/issues/5 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/1a999239a3799dfdb5b6214e6141020cb9a4dca43fb2549dba8703b16e5642df/purescript/purescript-strings/issues/5 |
| og:image:alt | Should the flags be exposed as a record or as some canonicalised string? Either way, should there be a function for converting between the two formats? edit: JS RegExp flags can be retrieved as a s... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | michaelficarra |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-preview |
| go-import | github.com/purescript/purescript-strings git https://github.com/purescript/purescript-strings.git |
| octolytics-dimension-user_id | 6556677 |
| octolytics-dimension-user_login | purescript |
| octolytics-dimension-repository_id | 17881174 |
| octolytics-dimension-repository_nwo | purescript/purescript-strings |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 17881174 |
| octolytics-dimension-repository_network_root_nwo | purescript/purescript-strings |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width