Skip to content

Commit

Permalink
Merge pull request #118 from tataronrails/master
Browse files Browse the repository at this point in the history
[fix] Placeholder and StepDefinition for the possibility to use the Russian language
  • Loading branch information
jnicklas committed Apr 4, 2014
2 parents 0c7aa5f + ed44685 commit 89351fb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/turnip/placeholder.rb
Expand Up @@ -27,7 +27,7 @@ def placeholders

def default
@default ||= new(:default) do
match %r((?:"([^"]*)"|'([^']*)'|([a-zA-Z0-9_-]+))) do |first, second, third|
match %r((?:"([^"]*)"|'([^']*)'|([[:alnum:]_-]+))) do |first, second, third|
first or second or third
end
end
Expand Down
2 changes: 1 addition & 1 deletion lib/turnip/step_definition.rb
Expand Up @@ -38,7 +38,7 @@ def match(description)

OPTIONAL_WORD_REGEXP = /(\\\s)?\\\(([^)]+)\\\)(\\\s)?/
PLACEHOLDER_REGEXP = /:([\w]+)/
ALTERNATIVE_WORD_REGEXP = /(\w+)((\/\w+)+)/
ALTERNATIVE_WORD_REGEXP = /([[:alpha:]]+)((\/[[:alpha:]]+)+)/

def compile_regexp
@placeholder_names = []
Expand Down

0 comments on commit 89351fb

Please sign in to comment.