Skip to content

Commit b73b54c

Browse files
simpler major version parse
1 parent 509ee69 commit b73b54c

File tree

4 files changed

+8
-9
lines changed

4 files changed

+8
-9
lines changed

dist/quick-sql.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,7 @@ function K(u, m, D) {
3737
return R ? k = '"' + k + '"' : k = k.toLowerCase(), k;
3838
}
3939
function pe(u) {
40-
let m = u.match(/^([0-9]+(?:[.][0-9]+)?)/);
41-
return m ? m[0] : null;
40+
return u.length < 2 ? null : parseInt(u.substring(0, 2));
4241
}
4342
var le = function() {
4443
var u = [

0 commit comments

Comments
 (0)