Skip to content

Commit

Permalink
Fix error tokenizing ref (#152)
Browse files Browse the repository at this point in the history
  • Loading branch information
1ec5 authored and Bobby Sudekum committed Sep 11, 2017
1 parent f5da14c commit 836dce5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -150,10 +150,10 @@ module.exports = function(version, _options) {
if (name && ref && name !== ref && !wayMotorway) {
var phrase = instructions[language][version].phrase['name and ref'] ||
instructions.en[version].phrase['name and ref'];
wayName = this.tokenize(phrase, {
wayName = this.tokenize(language, phrase, {
name: name,
ref: ref
}, language);
});
} else if (name && ref && wayMotorway && (/\d/).test(ref)) {
wayName = ref;
} else if (!name && ref) {
Expand Down

0 comments on commit 836dce5

Please sign in to comment.