Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: correct ?= RegExp #12

Merged
merged 5 commits into from
Jan 13, 2017
Merged

fix: correct ?= RegExp #12

merged 5 commits into from
Jan 13, 2017

Conversation

azu
Copy link
Member

@azu azu commented Jan 12, 2017

Add test case for ?= RegExp.
Current behavior has bug.

Original Bug reports: https://gist.github.com/cu39/8999ef8d0794d47da30917aa9e287a6f#file-prh-yml-L9

先読み正規表現のときの挙動がバグっている。
具体的にはここでreturnされている。
https://github.com/azu/textlint-rule-prh/blob/67a43f989850521b820151a0a0b0afd7c161c924/src/prh-rule.js#L83

prh側の置換実装を使ったりできるのかな?
applyChangeSetを持ってきた実装を追加

TODO

  • refactoring
  • add test cases

@azu azu changed the title test: add test for ?= RegExp fix: work rule use ?= RegExp Jan 12, 2017
@azu azu changed the title fix: work rule use ?= RegExp fix: fix to work some rules use ?= RegExp Jan 12, 2017
@azu azu self-assigned this Jan 12, 2017
@azu azu changed the title fix: fix to work some rules use ?= RegExp fix: correct ?= RegExp Jan 13, 2017
@azu azu merged commit 4838d00 into master Jan 13, 2017
@azu azu deleted the regexp-bug branch January 13, 2017 01:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant