local reconf = config['regexp'] metrics['default']['R_PARTS_DIFFER'] = { weight = 0.0, description = 'Symbol has been disabled' } metrics['default']['R_PARTS_DIFFER_0_10'] = { weight = 8.0, description = 'Text and HTML parts differ' } reconf['R_PARTS_DIFFER_0_10'] = 'compare_parts_distance(0, 10)'; metrics['default']['R_PARTS_DIFFER_10_30'] = { weight = 7.0, description = 'Text and HTML parts differ' } reconf['R_PARTS_DIFFER_10_30'] = 'compare_parts_distance(10, 30)'; metrics['default']['R_PARTS_DIFFER_30_50'] = { weight = 5.0, description = 'Text and HTML parts differ' } reconf['R_PARTS_DIFFER_30_50'] = 'compare_parts_distance(30, 50)'; metrics['default']['R_PARTS_DIFFER_50_60'] = { weight = 3.0, description = 'Text and HTML parts differ' } reconf['R_PARTS_DIFFER_50_60'] = 'compare_parts_distance(50, 60)'; metrics['default']['R_PARTS_DIFFER_60_70'] = { weight = 2.0, description = 'Text and HTML parts differ' } reconf['R_PARTS_DIFFER_60_70'] = 'compare_parts_distance(60, 70)'; metrics['default']['R_PARTS_DIFFER_70_75'] = { weight = 1.0, description = 'Text and HTML parts differ' } reconf['R_PARTS_DIFFER_70_75'] = 'compare_parts_distance(70, 75)'; metrics['default']['R_PARTS_DIFFER_75_80'] = { weight = 0.5, description = 'Text and HTML parts differ' } reconf['R_PARTS_DIFFER_75_80'] = 'compare_parts_distance(75, 80)'; metrics['default']['R_PARTS_DIFFER_80_85'] = { weight = 0.2, description = 'Text and HTML parts differ' } reconf['R_PARTS_DIFFER_80_85'] = 'compare_parts_distance(80, 85)'; metrics['default']['R_PARTS_DIFFER_85_90'] = { weight = 0.1, description = 'Text and HTML parts differ' } reconf['R_PARTS_DIFFER_85_90'] = 'compare_parts_distance(85, 90)';