EducationalTestingService / EducationalTestingService/match

Incorrect results when the original text contains aribitrary whitespace throughout

オープン
#7 コメント 0 件 リアクション 0 件 担当者 1 名 GitHub で見る

@dmnapolitano がすでに取り組んでいます。

2019年9月25日 から。

bug
主要言語
Python
スター
20
フォーク
5
PR マージ指標
30日以内にマージされた PR はありません

説明

([Source](https://www.poetryfoundation.org/poems/47247/in-just))

```python
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"""
```

```python
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"`):

```python
[(25, 92, 'when the world is mud-\nluscious the little\nlame balloonman\n\nwhistle')]
```

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。