Skip to content

Commit

Permalink
Update ignored keywords
Browse files Browse the repository at this point in the history
  • Loading branch information
cannawen committed Sep 21, 2017
1 parent 5ec8169 commit dde71e7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/conversion_helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ function weightMap(g) {
}
}

const metricDistances = ["mm", "cm", "km", "light-?years?",
const metricDistances = [/\bmm\b/, /\bcm\b/, /\bm\b/, /\bkm\b/, "light-?years?",
/(?:milli|centi|deca|kilo)?met(?:re|er)s?/];

const unitLookupList = [
Expand Down Expand Up @@ -143,7 +143,7 @@ const unitLookupList = [
"isInvalidInput" : isZeroOrNegative,
"isWeaklyValidInput" : isHyperbole,
"conversionFunction" : (i) => weightMap(i * 453.592),
"ignoredKeywords" : ["kgs?", "grams?", "kilograms?",
"ignoredKeywords" : [/\bg\b/, "kgs?", "grams?", "kilograms?",

"football", "soccer", "fifa"]
},
Expand Down

0 comments on commit dde71e7

Please sign in to comment.