Skip to content

Build your own AI office with Univer Office SDK. Bring editing, calculation, collaboration, and file processing into your product for people and AI agents. Built on an extensible open-source core.

fix(core): url regexper (#4237)

zhangw182f7c532051
diff --git a/packages/core/src/common/url.ts b/packages/core/src/common/url.ts
index e3931f5282..65869253e9 100644
--- a/packages/core/src/common/url.ts
+++ b/packages/core/src/common/url.ts
@@ -294,11 +294,6 @@ const re_weburl = new RegExp(
// user:pass BasicAuth (optional)
'(?:\\S+(?::\\S*)?@)?' +
'(?:' +
- // IP address exclusion
- // private & local networks
- '(?!(?:10|127)(?:\\.\\d{1,3}){3})' +
- '(?!(?:169\\.254|192\\.168)(?:\\.\\d{1,3}){2})' +
- '(?!172\\.(?:1[6-9]|2\\d|3[0-1])(?:\\.\\d{1,3}){2})' +
// IP address dotted notation octets
// excludes loopback network 0.0.0.0
// excludes reserved space >= 224.0.0.0