UNPKG

@shopify/polaris

Version:

Shopify’s admin product component library

8 lines (5 loc) 134 B
'use strict'; function escapeRegex(str) { return str.replace(/[.*+?^${}()|[\]\\]/g, '\\$&'); } exports.escapeRegex = escapeRegex;