Fix RTL detection on Ruby side (#3867)
This fixes below bugs: * pipe characters being counted as RTL character * only first word being checked
This commit is contained in:
parent
da6fa029f6
commit
b16b69350e
2 changed files with 6 additions and 6 deletions
|
@ -217,7 +217,7 @@ RSpec.describe StreamEntriesHelper, type: :helper do
|
|||
end
|
||||
|
||||
it 'is true if right to left characters are greater than 1/3 of total text' do
|
||||
expect(helper).to be_rtl 'aaݟ'
|
||||
expect(helper).to be_rtl 'aaݟaaݟ'
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue