Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Incorrect results when the original text contains aribitrary whitespace throughout

Đang mở
#7 0 bình luận 0 reaction 1 người được giao Xem trên GitHub

@dmnapolitano đang làm issue này rồi.

Từ ngày 25/9/2019.

Đánh giá

Issue này chưa được đánh giá.

Mô tả

bug

(Source)

original_text = """in Just-\nspring          when the world is mud-\nluscious the little\nlame balloonman\n\nwhistles          far          and wee\n\nand eddieandbill come\n   
running from marbles and\npiracies and it's\nspring\n\nwhen the world is puddle-wonderful\n\nthe queer\nold balloonman whistles\nfar          and             wee\nand bettyandisbel\
 come dancing\n\nfrom hop-scotch and jump-rope and\n\nit's\nspring\nand\n\n         the\n\n                  goat-footed\n\nballoonMan          whistles\nfar\nand\nwee"""
match.match(original_text, ["when", "the", "world", "is", "mud-luscious", 
"the", "little", "lame", "balloonman", "whistles", "far", "and", "wee"])

This produces incorrect results, failing to match all the way to the end of "wee" (let alone "whistles"):

[(25, 92, 'when the world is mud-\nluscious the little\nlame balloonman\n\nwhistle')]
Ngôn ngữ chính
Python
Star
20
Fork
5
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của EducationalTestingService/match

Tất cả issue của EducationalTestingService/match

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.