We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 47850f7 commit 6477b05Copy full SHA for 6477b05
index.js
@@ -237,8 +237,8 @@ module.exports = function(version) {
237
},
238
grammarize: function(language, name, grammar) {
239
if (!language) throw new Error('No language code provided');
240
- // Process way/rotary name with applying grammar rules if any
241
- if (name && grammar && grammars && grammars[language] && grammars[language][version]) {
+ // Process way/rotary/any name with applying grammar rules if any
+ if (grammar && grammars && grammars[language] && grammars[language][version]) {
242
var rules = grammars[language][version][grammar];
243
if (rules) {
244
// Pass original name to rules' regular expressions enclosed with spaces for simplier parsing
0 commit comments