String.replace in defpelemay doesn't finish when the pattern is not matched.
zacky1972 opened this issue · comments
Susumu Yamazaki commented
Describe the bug
String.replace in defpelemay doesn't finish when the pattern is not matched.
To Reproduce
Steps to reproduce the behavior:
- Use Pelemay in the source code:
defmodule StringSample do
require Pelemay
import Pelemay
@string """
abcdefghi
FizzBuzzFizzBuzz
"""
@pattern "hoge"
@replacement "Buzz"
defpelemay do
def replace_pelemay do
String.replace(@string, @pattern, @replacement)
end
end
end
- Run in the command
StringSample.replace_pelemay
in iex - It won't finish.
Expected behavior
Finish and subject will be returned.
Screenshots
snip
Desktop (please complete the following information):
- Pelemay Version: master
Additional context
None.