UNPKG

antd

Version:

一个 UI 设计语言

11 lines (7 loc) 208 B
"use strict"; function extractPath(string) { var match = string.match(/^https?:\/\/[^\/]*/); if (match == null) return string; return string.substring(match[0].length); } export default extractPath;