@@ -61,7 +61,6 @@ export const degradedMatch = (notamE: string, dangerZonesByName: Set<string>) =>
6161 const MAIN_ZONE_REGEXP = / (?: L F - | L F ) ? ( (?: R | C B A ) ? [ 0 - 9 ] { 1 , 3 } ) ( .* ) / g;
6262 const REST_REGEXP = / (?< ! [ A - Z ] ) [ A - Z ] { 1 , 2 } (? ! [ A - Z ] ) / g; // Negative lookbehind and negative lookahead to avoid matching more than 2 consecutive letters
6363 const mainMatch = new RegExp ( MAIN_ZONE_REGEXP ) . exec ( notamE . replace ( / , / g, ' ' ) ) ; // Replace commas with spaces
64- console . log ( mainMatch ) ;
6564
6665 if ( ! mainMatch || mainMatch . length < 2 ) {
6766 return [ [ ] , [ ] ] ;
@@ -72,8 +71,6 @@ export const degradedMatch = (notamE: string, dangerZonesByName: Set<string>) =>
7271
7372 const suffixes = rest . match ( REST_REGEXP ) ; // Replace commas with spaces
7473
75- console . log ( suffixes ) ;
76-
7774 if ( suffixes ?. length && suffixes . length > 0 ) {
7875 const mappedZones = suffixes
7976 . filter ( ( suffix ) => {
@@ -92,7 +89,6 @@ export const degradedMatch = (notamE: string, dangerZonesByName: Set<string>) =>
9289
9390export const matchZones = ( notamE : string , dangerZonesByName : Set < string > ) => {
9491 const matched = new RegExp ( ZONE_REGEXP ) . exec ( notamE . replace ( / , / g, ' ' ) ) ; // Replace commas with spaces
95- console . log ( 'matched' , matched ) ;
9692
9793 if ( matched && matched . length >= 1 ) {
9894 const mainZone = noSpace ( matched [ 1 ] ) ;
@@ -128,7 +124,7 @@ export const matchZones = (notamE: string, dangerZonesByName: Set<string>) => {
128124 return [ [ mainZone ] , [ ] ] ;
129125 }
130126 }
131- console . log ( 'unknownZones' , unknownZones , 'notamE' , notamE , 'knownZones' , knownZones ) ;
127+ // console.log('unknownZones', unknownZones, 'notamE', notamE, 'knownZones', knownZones);
132128
133129 // If we still have zero zones, let's switch to the degraded mode
134130 if ( knownZones . length === 0 && unknownZones . length === 0 ) {
0 commit comments