Skip to content

Commit

Permalink
Removing unneeded regex, making some regex case insensitive
Browse files Browse the repository at this point in the history
  • Loading branch information
avoidwork committed Jul 26, 2018
1 parent 8efdb68 commit a20552f
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 25 deletions.
8 changes: 2 additions & 6 deletions lib/regex.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,10 @@ module.exports = {
head: /^HEAD$/,
"get": /^(GET|HEAD|OPTIONS)$/,
getOnly: /^GET$/i,
getRewrite: /^(HEAD|OPTIONS)$/,
gzip: /gz/,
hasParam: /\/:(\w*)/,
hasOrderBy: /(\?|&)order_by/,
hasOrderByDesc: /(\?|&)order_by=desc/,
hypermedia: /[a-zA-Z]+_(guid|uuid|id|url|uri)$/,
id: /^(_id|id)$/,
hypermedia: /[a-z]+_(guid|uuid|id|url|uri)$/i,
id: /^(_id|id)$/i,
indent: /application\/json;\sindent=(\d+)/,
jsonWrap: /^[\[\{"]/,
leading: /.*\//,
Expand All @@ -27,7 +24,6 @@ module.exports = {
modify: /DELETE|PATCH|POST|PUT/,
options: /^OPTIONS$/,
orderBy: /^order_by\=/,
partial: /^bytes=/,
private: /private/,
scheme: /^(\w+\:\/\/)|\//,
trailing: /_.*$/,
Expand Down
36 changes: 18 additions & 18 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "tenso",
"description": "Tensō is an elastic REST API gateway for node.js",
"version": "8.0.15",
"version": "8.0.16",
"homepage": "http://avoidwork.github.io/tenso",
"author": "Jason Mulligan <[email protected]>",
"repository": {
Expand Down

0 comments on commit a20552f

Please sign in to comment.