refactor: improve code readability and consistency in proxy-chain and uri-parser utilities
refactor: add keys to icons in routers for improved rendering and performance refactor: optimize RegExp polyfill by using Object.prototype.hasOwnProperty.call refactor: reorder imports in chain-proxy-provider for consistency refactor: remove unused "obfs-opts" property from IProxySnellConfig interface refactor: reorganize imports and enhance refresh logic in app data provider refactor: re-enable prop-types linting for better type safety in BaseDialog component refactor: update dependencies in effect hooks for improved stability and performance
This commit is contained in:
@@ -11,13 +11,23 @@
|
||||
}
|
||||
|
||||
if (flags) {
|
||||
if (!originalRegExp.prototype.hasOwnProperty("unicodeSets")) {
|
||||
if (
|
||||
!Object.prototype.hasOwnProperty.call(
|
||||
originalRegExp.prototype,
|
||||
"unicodeSets",
|
||||
)
|
||||
) {
|
||||
if (flags.includes("v")) {
|
||||
flags = flags.replace("v", "u");
|
||||
}
|
||||
}
|
||||
|
||||
if (!originalRegExp.prototype.hasOwnProperty("hasIndices")) {
|
||||
if (
|
||||
!Object.prototype.hasOwnProperty.call(
|
||||
originalRegExp.prototype,
|
||||
"hasIndices",
|
||||
)
|
||||
) {
|
||||
if (flags.includes("d")) {
|
||||
flags = flags.replace("d", "");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user