chore: try to optimize the regex further, to fix CodeQL failure
Signed-off-by: Martin d'Allens <martin.dallens@liberty-rider.com>
This commit is contained in:
parent
0c59e28c43
commit
78638469d7
1 changed files with 1 additions and 1 deletions
|
|
@ -22,7 +22,7 @@ import { getFontsPbf, getTileUrls, fixTileJSONCenter } from './utils.js';
|
|||
|
||||
const FLOAT_PATTERN = '[+-]?(?:\\d+|\\d+.?\\d+)';
|
||||
const PATH_PATTERN =
|
||||
/^((fill|stroke|width)\:[^\|]+\|)*(enc:.+|(-?\d+(\.\d*)?,-?\d+(\.\d*)?\|)+(-?\d+(\.\d*)?,-?\d+(\.\d*)?)*)/;
|
||||
/^((fill|stroke|width)\:[^\|]+\|)*(enc:.+|-?\d+(\.\d*)?,-?\d+(\.\d*)?(\|-?\d+(\.\d*)?,-?\d+(\.\d*)?)+)/;
|
||||
const httpTester = /^\/\//;
|
||||
|
||||
const mercator = new SphericalMercator();
|
||||
|
|
|
|||
Loading…
Reference in a new issue