fix: path parser intermittent locale search match (#832)

This commit is contained in:
Nick 2019-05-09 22:46:23 -04:00
parent 3c27350a12
commit 4552c6d2b0

View File

@ -2,8 +2,8 @@ const qs = require('querystring')
const _ = require('lodash') const _ = require('lodash')
const crypto = require('crypto') const crypto = require('crypto')
const localeSegmentRegex = /^[A-Z]{2}(-[A-Z]{2})?$/gi const localeSegmentRegex = /^[A-Z]{2}(-[A-Z]{2})?$/i
const systemSegmentRegex = /^[A-Z]\//gi const systemSegmentRegex = /^[A-Z]\//i
/* global WIKI */ /* global WIKI */