Title: `indexOf'` gives incorrect result for empty prefix when starting index is out of bounds · Issue #42 · purescript/purescript-strings · GitHub
Open Graph Title: `indexOf'` gives incorrect result for empty prefix when starting index is out of bounds · Issue #42 · purescript/purescript-strings
X Title: `indexOf'` gives incorrect result for empty prefix when starting index is out of bounds · Issue #42 · purescript/purescript-strings
Description: The expression indexOf' "" 2 "ab" evaluates to Just 0, however it should be Nothing because the string "ab" doesn't have a character at index 2.
Open Graph Description: The expression indexOf' "" 2 "ab" evaluates to Just 0, however it should be Nothing because the string "ab" doesn't have a character at index 2.
X Description: The expression indexOf' "" 2 "ab" evaluates to Just 0, however it should be Nothing because the string "ab" doesn't have a character at index 2.
Opengraph URL: https://github.com/purescript/purescript-strings/issues/42
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`indexOf'` gives incorrect result for empty prefix when starting index is out of bounds","articleBody":"The expression `indexOf' \"\" 2 \"ab\"` evaluates to `Just 0`, however it should be `Nothing` because the string `\"ab\"` doesn't have a character at index `2`.\n","author":{"url":"https://github.com/LiamGoodacre","@type":"Person","name":"LiamGoodacre"},"datePublished":"2015-07-17T19:20:20Z","url":"https://github.com/purescript/purescript-strings/issues/42"}
| 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:cee54a51-fe05-4b6d-e8e1-1442f76454a9 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B6AE:19114D:2BC2AD:399361:6B00C1A4 |
| html-safe-nonce | e9c9bf735357f80c93bd0515728d1d5657cfebf94e50ce2732c9a91b8b16f541 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNkFFOjE5MTE0RDoyQkMyQUQ6Mzk5MzYxOjZCMDBDMUE0IiwidmlzaXRvcl9pZCI6IjUzMzg4MTk4MDg3MjcxODc4NzYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 3ca04b9da1bb5106d2b594d2501f8526c6e4160422bd0677b96986679f3a0286 |
| hovercard-subject-tag | issue:95725138 |
| 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/42/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ecd13377a4e0b57c685235332a1f2e2aac99e40ca4d3743f83286ca047b5351e/purescript/purescript-strings/issues/42 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ecd13377a4e0b57c685235332a1f2e2aac99e40ca4d3743f83286ca047b5351e/purescript/purescript-strings/issues/42 |
| og:image:alt | The expression indexOf' "" 2 "ab" evaluates to Just 0, however it should be Nothing because the string "ab" doesn't have a character at index 2. |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | LiamGoodacre |
| hostname | github.com |
| expected-hostname | github.com |
| None | 93edd3bebc4afb7ce711ee74cb5d2a95927850b082a4d43e212222389cb1c415 |
| 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 | 1fee81a280ea86312b69448e261b418189bfd5b5 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width