1
0
Fork 0
mirror of https://we.phorge.it/source/arcanist.git synced 2024-11-26 08:42:40 +01:00

Make British spelling stricter

Summary: This is pretty lame but I didn't have a better idea.

Test Plan:
  $ arc test # previously translated as list
  $ arc lst
  $ arc brnach

Reviewers: epriestley

Reviewed By: epriestley

CC: aran, Korvin

Differential Revision: https://secure.phabricator.com/D4773
This commit is contained in:
vrana 2013-01-31 16:28:51 -08:00
parent 6cd3d8e995
commit cdb01f23a7

View file

@ -204,7 +204,7 @@ class ArcanistConfiguration {
asort($distances);
$best = min($max_distance, reset($distances));
foreach ($distances as $option => $distance) {
if ($distance > $best) {
if ($distance > $best || strlen($option) <= 2 * $distance) {
unset($distances[$option]);
}
}