added turkish words

This commit is contained in:
Senad Uka
2013-12-23 04:38:34 +01:00
parent 2b89579c9d
commit 74c06d60ee
5 changed files with 575 additions and 1805 deletions

View File

@@ -3,7 +3,7 @@
rijeci = []
File.readlines('rijeci.txt').each do |line|
word_regex = /^(?<rijec>\p{Word}{4,10}),(?<definicija>.*)$/
word_regex = /^(?<rijec>\p{Word}{4,10})\s(?<definicija>.*)$/
matches = word_regex.match(line)
unless matches.nil?