mirror of
https://github.com/status-im/consul.git
synced 2025-01-22 03:29:43 +00:00
9d21736e9f
* Add copyright headers to UI files * Ensure copywrite file ignores external libs
12 lines
220 B
JavaScript
12 lines
220 B
JavaScript
/**
|
|
* Copyright (c) HashiCorp, Inc.
|
|
* SPDX-License-Identifier: MPL-2.0
|
|
*/
|
|
|
|
export default function (name) {
|
|
if (name.indexOf('[') !== -1) {
|
|
return name.match(/(.*)\[(.*)\]/).slice(1);
|
|
}
|
|
return ['', name];
|
|
}
|