Skip to content
Snippets Groups Projects
Commit 2cd1b0e3 authored by Marcelo Schmidt's avatar Marcelo Schmidt
Browse files

Fix 'split' error message

parent ee55debd
No related branches found
No related tags found
No related merge requests found
......@@ -12,4 +12,4 @@
@isRtl = (language) ->
# https://en.wikipedia.org/wiki/Right-to-left#cite_note-2
return language.split('-').shift().toLowerCase() in ['ar', 'dv', 'fa', 'he', 'ku', 'ps', 'sd', 'ug', 'ur', 'yi']
return language?.split('-').shift().toLowerCase() in ['ar', 'dv', 'fa', 'he', 'ku', 'ps', 'sd', 'ug', 'ur', 'yi']
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment