We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7d7ca02 commit 76bbe37Copy full SHA for 76bbe37
packages/pg/lib/result.js
@@ -1,8 +1,8 @@
1
'use strict'
2
3
-var types = require('pg-types')
+const types = require('pg-types')
4
5
-var matchRegexp = /^([A-Za-z]+)(?: (\d+))?(?: (\d+))?/
+const MatchRegexp = /^([A-Za-z]+)(?: (\d+))?(?: (\d+))?/
6
7
let parserCache = new Map()
8
@@ -29,7 +29,7 @@ class Result {
29
30
// adds a command complete message
31
addCommandComplete(msg) {
32
- var match = matchRegexp.exec(msg.text ?? msg.command)
+ const match = MatchRegexp.exec(msg.text ?? msg.command)
33
if (!match) return
34
this.command = match[1]
35
if (match[3]) {
0 commit comments