hunk.code_window: | Second                          | so           | 2019-01-01T12:13:01.015Z | 1.                                               | 2019-01-01T12:13:01.000Z |
   |                                 |              | 2019-04-01T12:13:55.015Z | 55.                                              | 2019-04-01T12:13:55.000Z |
   | Long localized date             | P            | 1987-02-11T12:13:14.015Z | 11.02.1987                                       | 1987-02-11T00:00:00.000Z |
   |                                 |              | 1453-05-29T23:59:59.999Z | 29.05.1453                                       | 1453-05-29T00:00:00.000Z |
   |                                 | PP           | 1987-02-11T12:13:14.015Z | 11. Feb.. 1987                                   | Invalid Date             |
   |                                 |              | 1453-05-29T23:59:59.999Z | 29. Mai. 1453                                    | 1453-05-29T00:00:00.000Z |
   |                                 | PPP          | 1987-02-11T12:13:14.015Z | 11. Februar 1987                                 | 1987-02-11T00:00:00.000Z |
   |                                 |              | 1453-05-29T23:59:59.999Z | 29. Mai 1453                                     | 1453-05-29T00:00:00.000Z |
   |                                 | PPPP         | 1987-02-11T12:13:14.015Z | Mittwoch, 11. Februar 1987                       | 1987-02-11T00:00:00.000Z |
   |                                 |              | 1453-05-29T23:59:59.999Z | Sonntag, 29. Mai 1453                            | 1453-05-29T00:00:00.000Z |
  
hunk.labels: keep keep keep keep replace replace keep keep keep keep
hunk.after_edit: |                                 | PP           | 1987-02-11T12:13:14.015Z | 11. Feb. 1987                                    | Invalid Date             |
   |                                 |              | 1453-05-29T23:59:59.999Z | 29. Mai 1453                                     | 1453-05-29T00:00:00.000Z |
  
hunk.file_path: src/locale/de/snapshot.md
hunk.type: replace
file: import buildMatchPatternFn from '../../../_lib/buildMatchPatternFn/index'
  import buildMatchFn from '../../../_lib/buildMatchFn/index'
  
  var matchOrdinalNumberPattern = /^(\d+)e?/i
  var parseOrdinalNumberPattern = /\d+/i
  
  var matchEraPatterns = {
    narrow: /^([vn]\.? ?C\.?)/,
    abbreviated: /^([vn]\. ?Chr\.?)/,
    wide: /^((voor|na) Christus)/
  }
  var parseEraPatterns = {
    any: [/^v/, /^n/]
  }
  
  var matchQuarterPatterns = {
    narrow: /^[1234]/i,
    abbreviated: /^K[1234]/i,
    wide: /^[1234]e kwartaal/i
  }
  var parseQuarterPatterns = {
    any: [/1/i, /2/i, /3/i, /4/i]
  }
  
  var matchMonthPatterns = {
    narrow: /^[jfmasond]/i,
    abbreviated: /^(jan.|feb.|mrt.|apr.|mei|jun.|jul.|aug.|sep.|okt.|nov.|dec.)/i,
    wide: /^(januari|februari|maart|april|mei|juni|juli|augustus|september|oktober|november|december)/i
  }
  var parseMonthPatterns = {
    narrow: [
      /^j/i,
      /^f/i,
      /^m/i,
      /^a/i,
      /^m/i,
      /^j/i,
      /^j/i,
      /^a/i,
      /^s/i,
      /^o/i,
      /^n/i,
      /^d/i
    ],
    any: [
      /^jan/i,
      /^feb/i,
      /^m(r|a)/i,
      /^apr/i,
      /^mei/i,
      /^jun/i,
      /^jul/i,
      /^aug/i,
      /^sep/i,
      /^okt/i,
      /^nov/i,
      /^dec/i
    ]
  }
  
  var matchDayPatterns = {
    narrow: /^[zmdwv]/i,
    short: /^(zo|ma|di|wo|do|vr|za)/i,
    abbreviated: /^(zon|maa|din|woe|don|vri|zat)/i,
    wide: /^(zondag|maandag|dinsdag|woensdag|donderdag|vrijdag|zaterdag)/i
  }
  var parseDayPatterns = {
    narrow: [/^z/i, /^m/i, /^d/i, /^w/i, /^d/i, /^v/i, /^z/i],
    any: [/^zo/i, /^ma/i, /^di/i, /^wo/i, /^do/i, /^vr/i, /^za/i]
  }
  
  var matchDayPeriodPatterns = {
    any: /^(am|pm|middernacht|het middaguur|'s (ochtends|middags|avonds|nachts))/i
  }
  var parseDayPeriodPatterns = {
    any: {
      am: /^am/i,
      pm: /^pm/i,
      midnight: /^middernacht/i,
      noon: /^het middaguur/i,
      morning: /ochtend/i,
      afternoon: /middag/i,
      evening: /avond/i,
      night: /nacht/i
    }
  }
  
  var match = {
    ordinalNumber: buildMatchPatternFn({
      matchPattern: matchOrdinalNumberPattern,
      parsePattern: parseOrdinalNumberPattern,
      valueCallback: function(value) {
        return parseInt(value, 10)
      }
    }),
  
    era: buildMatchFn({
      matchPatterns: matchEraPatterns,
      defaultMatchWidth: 'wide',
      parsePatterns: parseEraPatterns,
      defaultParseWidth: 'any'
    }),
  
    quarter: buildMatchFn({
      matchPatterns: matchQuarterPatterns,
      defaultMatchWidth: 'wide',
      parsePatterns: parseQuarterPatterns,
      defaultParseWidth: 'any',
      valueCallback: function(index) {
        return index + 1
      }
    }),
  
    month: buildMatchFn({
      matchPatterns: matchMonthPatterns,
      defaultMatchWidth: 'wide',
      parsePatterns: parseMonthPatterns,
      defaultParseWidth: 'any'
    }),
  
    day: buildMatchFn({
      matchPatterns: matchDayPatterns,
      defaultMatchWidth: 'wide',
      parsePatterns: parseDayPatterns,
      defaultParseWidth: 'any'
    }),
  
    dayPeriod: buildMatchFn({
      matchPatterns: matchDayPeriodPatterns,
      defaultMatchWidth: 'any',
      parsePatterns: parseDayPeriodPatterns,
      defaultParseWidth: 'any'
    })
  }
  
  export default match
  