Skip to content

Commit

Permalink
fix(uri-parser): fix from eslint warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
rymizuki committed Apr 28, 2019
1 parent 7e0781d commit 917dc95
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/hariko-parser/uri-parser.test.ts
@@ -1,3 +1,4 @@
/* eslint-env mocha */
import assert = require('assert')
import { UriParser } from './uri-parser'

Expand Down
4 changes: 2 additions & 2 deletions src/hariko-parser/uri-parser.ts
@@ -1,4 +1,4 @@
const PARAM_OPERATORS_REG = /\#\+\?\&/g
const PARAM_OPERATORS_REG = /#\+\?&/g
const PATHNAME_REG = /\{(.*?)\}/g
const URL_SPLIT_REG = /\{?\?/

Expand All @@ -24,7 +24,7 @@ export class UriParser {

private parseQuery(param_base: string) {
return param_base
.split(/\,|\{|\}/g)
.split(/,|\{|\}/g)
.map((param) => param.replace(PARAM_OPERATORS_REG, ''))
.filter((param) => param.length)
.map((param) => {
Expand Down

0 comments on commit 917dc95

Please sign in to comment.