projects
/
arvados.git
/ blob
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
21412: restored previous correct breadcrumbs Arvados-DCO-1.1-Signed-off-by: Lisa...
[arvados.git]
/
services
/
workbench2
/
src
/
common
/
regexp.ts
1
// Copyright (C) The Arvados Authors. All rights reserved.
2
//
3
// SPDX-License-Identifier: AGPL-3.0
4
5
export const escapeRegExp = (st: string) =>
6
st.replace(/[.*+?^${}()|[\]\\]/g, '\\$&'); // $& means the whole matched string