Title: Java客户端中HttpsqsStatus正则表达式有bug · Issue #18 · zivee/httpsqs · GitHub
Open Graph Title: Java客户端中HttpsqsStatus正则表达式有bug · Issue #18 · zivee/httpsqs
X Title: Java客户端中HttpsqsStatus正则表达式有bug · Issue #18 · zivee/httpsqs
Description: HttpsqsStatus.java line58: protected static Pattern pattern = Pattern.compile("HTTP Simple Queue Service v(.+?)\\s(?:.+?)\\sQueue Name: (.+?)\\sMaximum number of queues: (\\d+)\\sPut position of queue \\((\\d+)st lap\\): (\\d+)\\sGet pos...
Open Graph Description: HttpsqsStatus.java line58: protected static Pattern pattern = Pattern.compile("HTTP Simple Queue Service v(.+?)\\s(?:.+?)\\sQueue Name: (.+?)\\sMaximum number of queues: (\\d+)\\sPut position of qu...
X Description: HttpsqsStatus.java line58: protected static Pattern pattern = Pattern.compile("HTTP Simple Queue Service v(.+?)\\s(?:.+?)\\sQueue Name: (.+?)\\sMaximum number of queues: (\\d+)\\sPut position ...
Opengraph URL: https://github.com/zivee/httpsqs/issues/18
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Java客户端中HttpsqsStatus正则表达式有bug","articleBody":"```\nHttpsqsStatus.java line58:\nprotected static Pattern pattern = Pattern.compile(\"HTTP Simple Queue Service \nv(.+?)\\\\s(?:.+?)\\\\sQueue Name: (.+?)\\\\sMaximum number of queues: (\\\\d+)\\\\sPut \nposition of queue \\\\((\\\\d+)st lap\\\\): (\\\\d+)\\\\sGet position of queue \n\\\\((\\\\d+)st lap\\\\): (\\\\d+)\\\\sNumber of unread queue: (\\\\d+)\");\n\nsince the client use (\\\\d+)st lap to match the first lap, it will cause regex \nmatching failed when the unread number goes into lap 2 or latter.\n\nI change the pattern as follows:\nprotected static Pattern pattern = Pattern.compile(\"HTTP Simple Queue Service \nv(.+?)\\\\s(?:.+?)\\\\sQueue Name: (.+?)\\\\sMaximum number of queues: (\\\\d+)\\\\sPut \nposition of queue \\\\((\\\\d+)\\\\w\\\\w lap\\\\): (\\\\d+)\\\\sGet position of queue \n\\\\((\\\\d+)\\\\w\\\\w lap\\\\): (\\\\d+)\\\\sNumber of unread queue: (\\\\d+)\");\n\nhope this would help\n\n```\n\nOriginal issue reported on code.google.com by `imco...@gmail.com` on 7 Jan 2011 at 8:16\n","author":{"url":"https://github.com/GoogleCodeExporter","@type":"Person","name":"GoogleCodeExporter"},"datePublished":"2015-08-27T06:48:26.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/18/httpsqs/issues/18"}
| 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:79e21fc6-ebb7-7b2b-8667-b56e0ee08983 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 96D2:3161F8:296326:3769E1:6A53DE1A |
| html-safe-nonce | ec876fb245a120dd8342eb0ea93e7801f1d34d219369fa13300ca7e077f2667d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NkQyOjMxNjFGODoyOTYzMjY6Mzc2OUUxOjZBNTNERTFBIiwidmlzaXRvcl9pZCI6IjY0NTMyNTQ2OTEyMDM4MzMzNzEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | d04605c5c80dfeffa16ea36753f6cc708ef85fcc982034ca82ab1baaf8ea195a |
| hovercard-subject-tag | issue:103441130 |
| 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/zivee/httpsqs/18/issue_layout |
| twitter:image | https://opengraph.githubassets.com/1bb4a1df674ee48dd0541964ef835fea35881686606bbe15476a11142e6fcd56/zivee/httpsqs/issues/18 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/1bb4a1df674ee48dd0541964ef835fea35881686606bbe15476a11142e6fcd56/zivee/httpsqs/issues/18 |
| og:image:alt | HttpsqsStatus.java line58: protected static Pattern pattern = Pattern.compile("HTTP Simple Queue Service v(.+?)\\s(?:.+?)\\sQueue Name: (.+?)\\sMaximum number of queues: (\\d+)\\sPut position of qu... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | GoogleCodeExporter |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| turbo-cache-control | no-preview |
| go-import | github.com/zivee/httpsqs git https://github.com/zivee/httpsqs.git |
| octolytics-dimension-user_id | 539196 |
| octolytics-dimension-user_login | zivee |
| octolytics-dimension-repository_id | 41470413 |
| octolytics-dimension-repository_nwo | zivee/httpsqs |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 41470413 |
| octolytics-dimension-repository_network_root_nwo | zivee/httpsqs |
| 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 | 07a982c1d40157c619b364352b704c3ce66bb332 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width