Shumoku Docs

ドキュメントを検索

共通文書と現行公開版

検索を読み込み中…

English

@shumoku/core · 0.4.0 · function

interfaceNamesMatch

ソース

APIの説明は英語のcanonical sourceを表示しています。

Whether two interface names denote the same physical port. Same canonical prefix with aligning numbers (score ≥ 0.5), OR — for cross-vocabulary cases like TTDB's speed-code `hg` vs Juniper `et-` where prefixes differ but the port number is identical — the full number sequence matches.

interfaceNamesMatch(a: string, b: string): boolean

パラメーター

名前 説明 既定値
a string 追加説明はありません。
b string 追加説明はありません。

戻り値

boolean

libs/@shumoku/core/src/observation/interface-name.ts:143