Title: editor.research() assigns empty string to non-participating groups (instead of the preferred None) · Issue #324 · bruderstein/PythonScript · GitHub
Open Graph Title: editor.research() assigns empty string to non-participating groups (instead of the preferred None) · Issue #324 · bruderstein/PythonScript
X Title: editor.research() assigns empty string to non-participating groups (instead of the preferred None) · Issue #324 · bruderstein/PythonScript
Description: Under PS 3.0.16.0 (and 2.0.0.0 as well), consider this script: # -*- coding: utf-8 -*- from __future__ import print_function # see from Npp import * def match_found(m): print(m.groups()) matches = [] editor.research(r'test data: (\d+)\.?...
Open Graph Description: Under PS 3.0.16.0 (and 2.0.0.0 as well), consider this script: # -*- coding: utf-8 -*- from __future__ import print_function # see from Npp import * def match_found(m): print(m.groups()) matches = ...
X Description: Under PS 3.0.16.0 (and 2.0.0.0 as well), consider this script: # -*- coding: utf-8 -*- from __future__ import print_function # see from Npp import * def match_found(m): print(m.groups()) matches = ...
Opengraph URL: https://github.com/bruderstein/PythonScript/issues/324
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"editor.research() assigns empty string to non-participating groups (instead of the preferred None)","articleBody":"Under PS 3.0.16.0 (and 2.0.0.0 as well), consider this script:\r\n\r\n```py\r\n# -*- coding: utf-8 -*-\r\nfrom __future__ import print_function\r\n\r\n# see\r\n\r\nfrom Npp import *\r\n\r\ndef match_found(m): print(m.groups())\r\nmatches = []\r\neditor.research(r'test data: (\\d+)\\.?(\\d+)?', match_found)\r\n\r\n# test data: 24\r\n```\r\n\r\nRun the script with the script itself as the active tab in Notepad++.\r\n\r\nActual Output:\r\n`('24', '')`\r\n\r\nPreferred output:\r\n`('24', None)`\r\n\r\nRationale for preferred output, see https://docs.python.org/3/library/re.html#match-objects:~:text=Match.groups(default%3DNone), duplicated here:\r\n\r\n\r\n\r\nNote that PS does not support the `default` argument for `m.groups()` and I'm not requesting that here (that would be a feature/enhancement request, whereas this current issue is more of a bug/enhancement request).\r\n\r\n","author":{"url":"https://github.com/alankilborn","@type":"Person","name":"alankilborn"},"datePublished":"2024-01-24T11:55:43Z","url":"https://github.com/bruderstein/PythonScript/issues/324"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf |
| 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:38df8274-43eb-6d24-82ca-a4028121c1ec |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 866A:8D4F:942462:CC9D00:6AF98536 |
| html-safe-nonce | 6d202e0e6b2040de8f71d6d81c1a2e6d764c2ee160747878daa11b6a7b8c3fad |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NjZBOjhENEY6OTQyNDYyOkNDOUQwMDo2QUY5ODUzNiIsInZpc2l0b3JfaWQiOiI4NTk3NDQwODAwNzYzNzc0MjYyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 388d937b277cd7eec74e3b724ea0aac8ffa51f2659c161f189211a8edda82819 |
| hovercard-subject-tag | issue:2098106932 |
| 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/bruderstein/PythonScript/324/issue_layout |
| twitter:image | https://opengraph.githubassets.com/351080ae90a829a48f1d9bfcb1ab592f2546d1e2cbe7120807f352c46ffa2b5b/bruderstein/PythonScript/issues/324 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/351080ae90a829a48f1d9bfcb1ab592f2546d1e2cbe7120807f352c46ffa2b5b/bruderstein/PythonScript/issues/324 |
| og:image:alt | Under PS 3.0.16.0 (and 2.0.0.0 as well), consider this script: # -*- coding: utf-8 -*- from __future__ import print_function # see from Npp import * def match_found(m): print(m.groups()) matches = ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | alankilborn |
| hostname | github.com |
| expected-hostname | github.com |
| None | 612d3e6ffd693e7ea8d9fcf452370995872baef31d825b1fedef704cd3d24ac7 |
| turbo-cache-control | no-preview |
| go-import | github.com/bruderstein/PythonScript git https://github.com/bruderstein/PythonScript.git |
| octolytics-dimension-user_id | 91716 |
| octolytics-dimension-user_login | bruderstein |
| octolytics-dimension-repository_id | 795778 |
| octolytics-dimension-repository_nwo | bruderstein/PythonScript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 795778 |
| octolytics-dimension-repository_network_root_nwo | bruderstein/PythonScript |
| 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 | 072e34035c13c31543fba9f025cbbbda4210dae4 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width