Fix CodeQL issue with regular expression
This commit is contained in:
parent
394f24c29f
commit
c690bc18a0
@ -246,7 +246,7 @@ class IngredientParser:
|
||||
|
||||
# handle "(from) - (to)" amounts by using the minimum amount and adding the range to the description
|
||||
# "10.5 - 200 g XYZ" => "100 g XYZ (10.5 - 200)"
|
||||
ingredient = re.sub("(\d+|\d+[\\.,]\d+) - (\d+|\d+[\\.,]\d+) (.*)", "\\1 \\3 (\\1 - \\2)", ingredient)
|
||||
ingredient = re.sub("^(\d+|\d+[\\.,]\d+) - (\d+|\d+[\\.,]\d+) (.*)", "\\1 \\3 (\\1 - \\2)", ingredient)
|
||||
|
||||
# if amount and unit are connected add space in between
|
||||
if re.match('([0-9])+([A-z])+\s', ingredient):
|
||||
|
@ -136,13 +136,14 @@ module.exports = {
|
||||
config.devServer
|
||||
.host("localhost")
|
||||
.port(8080)
|
||||
.set('hot', 'only')
|
||||
//.set('hot', 'only')
|
||||
.set('static', {watch: true})
|
||||
// old webpack dev server v3 settings
|
||||
// .hotOnly(true)
|
||||
// .watchOptions({ poll: 500 })
|
||||
// .public("http://localhost:8080")
|
||||
.https(false)
|
||||
.hot(true)
|
||||
.headers({"Access-Control-Allow-Origin": ["*"]})
|
||||
},
|
||||
}
|
||||
|
28835
vue/yarn.lock
28835
vue/yarn.lock
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user