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 0a1dbe7 commit 2163d1aCopy full SHA for 2163d1a
src/openlayers/mapping/WebMap.js
@@ -2283,9 +2283,9 @@ export class WebMap extends Observable {
2283
.replace(/or|OR/g, "||")
2284
.replace(/<==/g, "<=")
2285
.replace(/>==/g, ">=")
2286
- .replace(/\(?[^\(]+?\s+in\s+\([^\)]+?\)\)?/g, (res) => {
+ .replace(/\(?[^\(]+?\s*in\s*\([^\)]+?\)\)?/gi, (res) => {
2287
// res格式:(省份 in ('四川', '河南'))
2288
- const data = res.match(/([^(]+?)\s+in\s+\(([^)]+?)\)/);
+ const data = res.match(/([^(]+?)\s*in\s*\(([^)]+?)\)/i);
2289
return data.length === 3
2290
? `(${data[2]
2291
.split(",")
0 commit comments